Python -- File practice

Document practice question1 Batch modify file name import os dirName = os.path.realpath('xcx') dirList = os.listdir(dirName) for name in dirList: newName = '[Western open source]-' + name os.rename(dirName + '\\' + name, dirName + '\\' + newName) print("rename %s by%s " % (name, newName)) The results ...

Posted on Sat, 02 Nov 2019 20:01:38 -0400 by xxreenaxx1

Alibaba sentinel source code research in depth

1. In depth research on Alibaba sentinel source code 1.1. Preface sentinel was successfully deployed to the online environment yesterday. Please refer to me. Blog post , the pits that should be walked are all over, and its current limiting and degrading functions can be used initially. According to my current practice, current limiting and deg ...

Posted on Sat, 02 Nov 2019 19:44:13 -0400 by umrguy

Four Exchange modes of rabbitMQ are easy to use (direct fanout topic header instance)

Keyword Exchange: switch Routing key: routing key Four Exchange modes direct: producers and consumers need to bind the same Exchange and routing key s. fanout: broadcast mode requires producers and consumers to bind the same Exchange. topic: the broadcast mode supporting fuzzy matching is sepa ...

Posted on Sat, 02 Nov 2019 17:08:26 -0400 by phpcoding2

Summary of JSON and python data object transformation

Article directory 1. JSON (JavaScript Object Notation) is a data exchange format json.dumps json.loads 2. String, list, array, dictionary, json conversion String to other types 1. JSON (JavaScript Object Notation) is a data exchange format json.dumps(): encode the data. ----Dumps are ...

Posted on Sat, 02 Nov 2019 15:57:33 -0400 by sspphp

Dry goods:. net core to read user-defined configuration file, active code

Many people don't understand how to read configuration files in. NET CORE. I have two articles here. The last one introduces how to read file information through appsettings.json configuration. This article teaches you to customize the configuration file: 1. Create a configuration file under the project { "FileMap": { "ImgPath": " ...

Posted on Sat, 02 Nov 2019 11:59:23 -0400 by Zeceer

Problems in background communication between Vue+Axois and SSM

1. Cross domain issues Cross domain problems need to be solved when front and back ends are separated: export function registerUser(data) { console.log('export function registerUser(data)'); return request({ baseURL:'http://127.0.0.1:8080', url: '/user/registerUser', method: 'post', data }) } Set baseURL a ...

Posted on Sat, 02 Nov 2019 05:17:49 -0400 by kaedus

Taobao H5 sign encryption algorithm

Taobao's access to h5 is different from that of the client. Due to the high risk of saving appsercret in the js code of h5, mtop uses the method of randomly assigning tokens to each client, which are stored in the user's cookie. The tokens allocated by the server are brought back through the cookie. The client uses the allocated tokens to gener ...

Posted on Sat, 02 Nov 2019 04:40:35 -0400 by tecmeister

Multi environment (development environment, test environment, production environment) configuration of angular7

In the development of angular program, we usually use three environments, such as development environment, test environment and production environment. Use different code for different environments, such as interface address. Configure development environment, test environment, production envi ...

Posted on Sat, 02 Nov 2019 04:24:42 -0400 by adeenutza

Upload video practice of [wechat applet] applet project

People don't talk too much. Look at the code. wxml <view class='sendImg'> <view class='imageboxs'> <view class='image-list clearfix'> <block wx:for='{{videobenArr}}' wx:key='{{index}}'> <view class='image-ite ...

Posted on Sat, 02 Nov 2019 00:05:55 -0400 by mabans

Introduction to WebApi of EF Core

It mainly describes the use of EF Core's CodeFirst to migrate database, simple interface addition, deletion, modification and query, and Swagger to generate interface documents. 1. New project create DbContext and entity model   (1) add ToDoDbContext and inherit DbContext 1 public class ToDoContext:DbContext 2 { 3 pu ...

Posted on Fri, 01 Nov 2019 23:26:06 -0400 by SuprSpy79