User interaction with the python comments

1, input input function, name = input ( "Please enter your name"), the contents of the input assigned to the variable name.

2, input data you input will matter is that you enter a number or a string, str will be converted into the format.

3, the output format:

The INPUT = the Name ( "the Name:") 
Age = the INPUT ( "Age:")
City = the INPUT ( "City:")
info = "" "
------------- info IS --- --------
name IS:% S
Age IS:% S
City IS:% S
--------------------------- ------
"" "% (the Name, Age, City)
Print (info)

personal feeling that the output format is very useful in follow-up project, a great help to me.

Guess you like

Origin www.cnblogs.com/ZhRJ/p/11005674.html