python multitasking process
1, First demo
3, Process Pool
4, Case: file copying
1, First demo
Process: after a program runs, the resource used by code + is called process, which is the basic unit of non allocated resources of the operating system. Multitasking completed by t ...
Posted by 2paulm on Sun, 28 Jun 2020 20:35:19 -0700
Enumeration is a new data type in JDK 1.5. With enumeration, we can well describe some specific business scenarios, such as spring, summer, autumn and winter in a year, Monday to Sunday in a week, and various colors, as well as some state information, such as error codes.
Enumeration type not only exists in Java language, but also can be found ...
Posted by pinxxx on Sat, 27 Jun 2020 23:12:24 -0700
Python asynchronous programming
Now it's Python 3.5 and it has entered the asynchronous era
Because of the existence of GIL (global lock), python can not play the advantage of multi-core, and its performance has been criticized. However, in IO intensive network programming, asynchronous processing is hundreds of times more efficient ...
Posted by stickman373 on Sat, 27 Jun 2020 22:46:42 -0700
As mentioned in the previous article, Python is simple and efficient because it has rich functions that can be used immediately. Recently, I read some technical articles of Github and found some interesting and practical Python libraries. It's a feeling that I'm too late to meet each other. Today, I wil ...
Posted by harvey on Sat, 27 Jun 2020 21:09:40 -0700
A line of code to realize the cardioid pattern
Two lines of code to make special dynamic QR code
Four lines of code generate exclusive word cloud:
Draw polygonal lines in five lines of code:
Ten lines of code to draw sunflower:
Twenty lines of code to realize the game of Jingzi chess
Posted by zoran on Sat, 27 Jun 2020 19:15:05 -0700
When developing Python applications, the system has only one version of Python 3 installed: 3.x. All third-party packages will be installed by pip in the site packages directory of Python 3.
If we want to develop multiple applications at the same time, these applications will share the same python, w ...
Posted by dross613 on Sat, 27 Jun 2020 01:13:39 -0700
The dictionary refers to
1. How to access and modify information in a dictionary.
2. How to traverse the data in a dictionary,
3. A list of dictionaries to store, a dictionary to store lists, and a dictionary to store dictionaries.
A dictionary is a series of key-value pairs that can be u ...
Posted by andreea115 on Fri, 26 Jun 2020 17:49:21 -0700
Function (subroutine, procedures)
Function is to encapsulate a set of statements with a name (function name). To execute this function, you only need to call its function name
Easy to reuse a part of code and reduce duplicate code
Easy to modify code and expand
Keep the ...
Posted by jedney on Thu, 25 Jun 2020 23:16:12 -0700
Recently, pytorch has been used in the group report, so I want to organize the relevant content into a blog (report ppt and demonstration code are attached at the end, you can take them if necessary). It mainly refers to the previous chapters of Python deep learning: Based on pytorch and some online int ...
Posted by highjo on Thu, 25 Jun 2020 21:43:09 -0700
Using python script to find symbols in. so library file
Naming rules and storage / search path of Linux dynamic link library
Search files in Linux
Linux browsing symbol list in. so library file
Calling shell commands in Python
When writing a Makefile rece ...
Posted by sujithnair on Thu, 25 Jun 2020 20:43:02 -0700