Python syntax - 0 Off

# Sign is a comment

 

print(520)

print ( 'play together')

print ( "play together")

print("Let's play")

 

Three 'is the number of usage wrap

print ( '' 'I want to stay at her mother's soup bath for two years,
the first year-fired boiler in the boiler room and boiler grandfather with water,
will become a pig in the world. '
'')

 

\ N is a new line of usage

Print ( 'I want to stay at her mother's soup bath for two years, \ n if I go against the content of the work, then, \ n will become a pig in the world.' )

Escape character, such as newline \ + newline [n] Representative; backspace \ b + backspace] [Representative; Enter \ r represents [] + return

 

 

Variable assignment

name = 'Away'

a = 2 is assigned

a == 2 is a comparative

 

Guess you like

Origin www.cnblogs.com/AlterMe/p/11058401.html