The public number 100 days, is a worthy mention of the day! I've been doing this public number since October 31, 2017, and it's almost 100 days from today's February 7, 2018. Although the public has applied early, it was not until October 31 last
DemandGiven a list for each element in the list to perform certain actions (this operation is time-consuming, such as crawling data when the interface of a Web site), return to the list after the operationFor example, given the 1-10 number, add a
Add:Why to detach from front and back:A, because the front-end it has its own framework, so that its efficiency is very highb, do not do before and after the end of separation, if the company has both client, and the app in this case you write two
Basic concepts of processesConceptA process is a dynamic execution of a program on a data set. The process is generally composed of three parts: program, data set and process control block. The program we write is used to describe what the process
This article is based on py2.xThreadMultitasking can be done by multiple processes or by multithreading within a process.We mentioned earlier that a process is made up of several threads, and a process has at least one thread.Multithreading is
Common modulesHttp://www.cnblogs.com/alex3714/articles/5161349.html######### #模块 ############Import Call ModuleCall a function of a module separatelyFrom time Import Sleep # #调用time模块的sleep函数 (can be used, take more than one)Sleep (1)Print ('
Python installation
Download python
Configuring Environment variables
Computer--Properties--Advanced settings--environment variable--path--add Python.exe address
Enter Python in cmd to verify the configuration is
Python Learning Note oneReference Tutorial: Liao Xuefeng official website https://www.liaoxuefeng.com/wiki/0014316089557264a6b348958f449949df42a6d3a2e542c000I. Introduction of PythonPython is a programming language written by the famous "Uncle
1,int #数字 (plastic)A=1Print (Type (a)) # # #结果 2,bool #布尔值True与FalseNon-0 is true, non-null is TruePrint (bool (9))True3,str #字符串Single and double quotes are the result of Str.A= "123"Print (Type (a))# #字符串的格式化输出Format # #格式化输出的另一种方式A= "Hello
Process
Description: This article is based on the py2.x environment, 3.X has some problems on my computer. The difference between the two is not big.
Python implements multiple processes in two main ways: one is to use the Fork method
for in range ()print= [' option%s'for in Range (ten)]print(L1)1. The [] Conversion of the list parsing [] to () is the generator expression2. List parsing and builder expressions are a convenient way of programming, except that generator
Multiprocessing--pool of Python multi-process programming----When the number of sub-processes that need to be created is limited, you can dynamically generate multiple processes using the process in multiprocessing.----However, if there are hundreds
Python is powerful because he has a strong library of classes, whether it's for data analysis or scientific computing, for web development, and so on.There is also a concise language, (I have always felt that if the simple popular language can
" SDFG " "ag""GSRG" = + = += + + C,print(li)#[' SDFG ', ' AG ', ' GSRG '] No comma at the end of the sentence" SDFG " "ag""GSRG" = + = += + + cprint(li)#[' s ', ' d ', ' f ', ' G ', ' a ', ' G ' , ' G ', ' s ', ' r ', ' G ']Or you can directly
One, single case model theorySingle-case mode:ensure that there is only one instance of a class, and that there is only one access point globallyAdvantages:1, because the singleton mode requires only one instance in the global, so can save more
12. multithreading: Threading, daemon thread, and multithreading threadingThreads and processes:
For a process, a thread is like a worker in the factory. Resources are allocated to the factory, and the worker will process them again.
A thread is the
Python learning path (1): python learning pathPython learning path (1)
Python 3.6I. coding problems
The part that involves Chinese requires UTF-8 encoding. Use PyCharm: File-> Settings-> Editor-> File Encoding to select UTF-8 Encoding in
12.1 multithreading: mutex lock, recursive lock, semaphore, event, 12.1 mutex
Mutex lock:
Why does mutex lock exist: Because multithreading is parallel, operations will be performed if a thread extracts a certain data, but it has not completed
Python + Selenium notes (1): Environment configuration + simple example, pythonselenium
# Environment configuration based on windows OS
# Learning selenium requires some basics of HTML and xpth. It is not recommended that you take some time to learn
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service