Python -- Processing json with Chinese

First of all, the blog mainly introduces the background of writing this blog. 1, the main Chinese field that Bo deals with is this style: 01 hanging air conditioner 02 ordinary chair 02 ordinary curtain 03 desk - computer desk - office desk 04 Microwave oven-oven-dishwasher-sterilizer 05 Elect ...

Posted by misseether on Fri, 04 Oct 2019 23:15:31 -0700

Python crawls 1000 pages of Baidu Encyclopedia

### Crawler Architecture Dynamic Workflow The scheduler asks the url manager if it has a url to crawl and returns it to the scheduler if it does. If so, the scheduler takes a url to crawl from the url manager and the url manager returns the url to the scheduler. Now the scheduler gets the url. The sche ...

Posted by Frag on Thu, 03 Oct 2019 11:09:55 -0700

The first part is day4- three login experiment, character encoding.

# Three login experiments 1 memu = { 2 "Shaanxi":{ 3 "Xi'an City":{ 4 "New urban area":["Daming Palace Site","Hanyuan Temple Site","Eighth Route Army Office"], 5 "Forest of steles":["Anbeilin Museum","Ming Dynasty City Wall","Little wild goose pagoda" ], 6 "Lianhu District":["bell to ...

Posted by reflash on Wed, 02 Oct 2019 03:04:47 -0700

Python Foundation - Functions

I. Functional function 1. What is a function? Functions are organized, reusable code segments that implement a single, or related function. Functions can improve the modularity of applications and the reuse of code. 2. Definition of function Syntax: def functionname( parameters ): "function_Document string" function_suite re ...

Posted by mervyndk on Thu, 26 Sep 2019 22:47:33 -0700

Falsk Framework Session and Flask-Session

Catalog Cookie and Session Session storage mechanism in Falsk Related Configurations Use the Flask-Session tripartite component Basic exercises Cookie and Session Cookie:#Storage size is limited, stored on the client, there is a security risk Cookies, meaning cookies, were proposed ...

Posted by megaalf on Thu, 26 Sep 2019 20:08:32 -0700

rabbitmq maintains connection

Background: Recently on-line MQ consumer process ok, but rabbitmq console shows no consumption process, resulting in MQ queue message accumulation, previously directly restart mq, this decision to explore the reasons Operating time-consuming Daemons For business reasons, every time 30 W records ...

Posted by psycovic23 on Mon, 23 Sep 2019 00:34:39 -0700

C++ Learning Case

C++ is a good programming language. At the same time, C++ is a rugged road. I want to witness my growth here with you. I will share some cases, source code and learning experience with you from time to time every day. Case 1: Title Description: Enter a string to determine how many strings there are, ...

Posted by illusiveone on Sat, 21 Sep 2019 01:18:42 -0700

Usage of regular sed/awk

*sed implements some grep functionality, but it's a little more cumbersome, sed's strength is to delete the contents of the file and replace it sed implements grep retrieval: 1. Retrieve by keyword: [root@localhost ~]# sed -n '/root/'p passwd.txt * Retrieval with sed requires a -n parameter before the keyword, p after the keyword, and / or in ...

Posted by koray on Thu, 19 Sep 2019 10:10:41 -0700

Packaging and Encoding of [Image_Codec] Common Picture Formats-Android Platform PNG

Article directory PNG Picture Format PNG file structure PNG Compression Principle PNG picture codec libpng PNG Picture Format PNG(Portable Network Graphics) is a rasterized, lossless compressed image file format. The purpose of the design is ...

Posted by cafrow on Mon, 16 Sep 2019 22:45:46 -0700

Python Basic Tutorial Learning-String

Character string Character string String Format String Method Determines whether a string meets a specific condition Character string All standard sequence operations (index, slice, multiplication, membership check, length, minimum, and max ...

Posted by Valkrin on Sun, 15 Sep 2019 19:30:03 -0700