Start and End buttons:
Breakpoint button:
Empty button:
If you cannot catch the package, try changing the browser request again
Python Basics (i)
Computer language is divided into compiled and interpreted languages, compiled language needs to be compiled in advance, and then run directly, but the interpretation of the language is in the process of compiling, compiled language because of the completion of the compilation steps, run faster than the interpretation of the language, Python is interpreted language
Python can now do a variety of work
It is recommended to use Pycharm for editing, if you want to connect to the warehouse, you need to first configure the Git path in the settings version control, and then fill out the Git address in the VCs checkout from version control. clone, download or upload use the font and color scheme in editor to adjust the appearance configuration for using modify Pycharm
[' and ', ' as ', ' assert ', ' break ', ' class ', ' Continue ', ' def ' , ' del ', ' elif ', ' Else ', ' except ', ' exec ', ' finally ' , ' For ',' from ', ' Global ', ' if ', ' import ', ' on ', ' is ', ' Lambda ', ' not ', ' or ', ' Pass ', ' print ', ' raise ', ' return ', ' Try ', ' while ', ' with ', ' yield ']
Currently these words belong to a specially defined word and cannot be used as a new variable name
Single quotes, double quotes can define string variables, three quotation marks (three single quotes and three double quotes) can define multiple lines of comment, you can also define a string when the string contains single or double quotation marks
Input and output are available using input and print,
Input at the time of receiving inputs, you can see the value you entered, if you enter a password like this, do not want to let others see your password, how to do it, you need to use a standard library, Getpass, what is the standard library, is not need you to install, loaded Python on the library, is the standard library, Getpass is a standard library, import in, directly using the Getpass.getpass method can be entered at the time, do not echo the
import getpass #导入getpass模块 password = getpass. Getpass(' Please enter your password: ') #接收输入的密码 Print(password) If elif else should pay attention to continue and break's hierarchical relationship, both continue and break exit the current loop, while the loop has a for and while sentence, for I in range (n) is commonly used while n+=1 n-=1 ... The sentence is also more commonly used format output is usually used in two, one is a placeholder, such as name = Jiayi Print ("%s"%name) print ("%s,%d"% (Name,age)) is a format method, with {}, the general form of name = Jiayi Print ("{}". Format (name))
Charles ' basic Operation method and Python Foundation (i)