Formatting and outputting basic data types and the basic operators

Interaction with the user

 name = input ( "suggestive statement")

 print(name)

python2 in: you must declare the type of input

 

In python3: regardless of what type of user input, the string is eventually returned to a certain

A formatted output:

 

And 1.% s% d

 

  

Guess you like

Origin www.cnblogs.com/godlover/p/11787280.html