SysThe SYS module is different from the OS module, which deals with the Python interpreter.SYS.ARGV: Returns the beginning of a file name with a list of what is entered laterImport sysres = Sys.argvprint (res) execution: C:\users\ldsly>python
Objective: To check if the password is strong through regular expressions, this method should be used very often when registering a Web page.Environment: Ubuntu 16.04 python3.5Idea: You need more than one regular expression, and then check whether
Objective: to deal with the text, the regular expression of the function is very powerful, can be very clever filtering, matching, get the desired string, is a must learn skills, here only the usual writing, detailed documentation can be read the
Python modules (standard, custom, third-party modules), Python OS, sys and time modules, and __name__.One, the Python moduleThe essence of the import module is to import the code inside the module, from top to bottom to execute again. The order in
' For I in Range ' (1,10):For j in Range (1,10):Print I, ' * ', j, ' = ', i*j, ',‘‘‘‘‘‘For a in range (1,10):For b in Range (1,10):#print A, ' * ', b, ' = ', a*b, ',print '%d*%d=%d '% (a,b,a*b),print ' \ n 'For M in range (1,10):For n in range (1,m+1
Python Basic data Typesintegers, floating-point numbers (floating-point numbers, which are decimals, are referred to as floating-point numbers because the decimal position of a floating-point number is mutable when represented by scientific notation)
Objective:Provides something similar to Getter/setter in Java.(The purpose of getter/setter: To make attributes more simple by making them easier to reference---especially for future read/assignment of properties)Official Concise
2017-06-24 14:34:391, integers and long integers2. Floating point number3, plural, shape such as 1+4j, etc.4, string single quotation marks can be, there are three quotation marks, the function of three quotation marks to achieve the operation of
#abs (x) Parameter: X--Numeric expression return value: Numeric effect: Returns the absolute value of the corresponding number of X#列:# Print (ABS (-2))# All (iterable) parameter: iterable--Ganso or list return value: Boolean effect: Returns True if
A collection of some common Python librariesReprinted from: https://zhuanlan.zhihu.com/p/21563130In addition https://awesome-python.com/#data-analysis site also has a lot of commonly used libraries.GUI graphical
Goal
Learn about Python's history
Understanding the characteristics of Python
Learn about Python's applications
Mastering the construction of the Python development environment under Linux
Understanding the construction of a Python
Recently wanted to learn some of the content of Python data analysis, a crawler crawled some data, and intends to use anaconda set of tools (Pandas, NumPy, scipy, Matplotlib, Jupyter) and other preliminary data mining and analysis.
In the use of
Cmd:
Pip-v Viewing the PIP version
Pip install--upgrade pip upgrade to the highest version
Installing Pywin32
Although it's written AMD64, it's actually Intel can use.
[Recommended] if it is Anaconda Python, skip to install Sacrapy.
Type the cell
Before I learned Alex's Python tutorial, Alex's teaching was really great and humorous. Hey. I hope I can stick to it.
To review the basic knowledge of the previous study. Hope that they can learn python on the road farther and further away, we one
Set Set: is a set of unordered, non-repeatable collectionsCreation of 1.setse={"ww3", 23432,"name"}# Create an empty collection Se1=set ()2. Convert to a collectionli=[23,56,23,44]se=set (li)print(se)# output: {56, 44, 23} Common methods of 3.setAdd
Lincode record 5 and lincode record 5Course Schedule Frog Jump Maximum length of the receipt string Course Schedule
The course selection solution is a clear question: bfs or dfs, and then a dictionary optimization is added, I haven't figured it out
Python Concatenates the full avatar of a friend and the python avatar.Full portrait of friends
Let's just talk about the code.
Import itchatimport mathimport PIL. image as Imageimport ositchat. auto_login () friends = itchat. get_friends (update =
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