python learning foundation diary 1-

Variable names can only contain letters, numbers, underscores

Only the beginning of the beginning letters or numbers can not contain spaces underscore can not be used with caution number 1 and the letter O

The effect of single and double quotation marks, like the freedom to choose who works outside outside

name.title () word capitalized

name.upper () all uppercase words

name.lower () word in all lowercase 

+ Sign for splicing

\ T Tab

\ N newline

name.rstrip () deletes blank

input () a user input

print function must be bracketed in the python3, Python2 Some or without brackets

python can be performed directly on the integer arithmetic

 

Guess you like

Origin www.cnblogs.com/tangcupaigu/p/11105770.html