Here are two, equivalent to the scanf function in C
The first of the Raw_input
1 age=raw_input ("")2print"You are%d" Old. " % Age
When the raw_input is encountered, the program's run will abort, popup the string in parentheses, the value you entered will be assigned to the previous variable
A second argv
1 fromSysImportargv2 3Script, name, tall, weight =argv4 5 Print "The script is called:", Script6 Print "Your name variable is:", name7 Print "your tall variable is:", Tall8 Print "your weight variable is:", weight
The From ****import*** is the call library and will often encounter
ARGV Saves the arguments you enter when you run the variable and takes it out of the object.
The first one is script, which is the name of the scripts, and then the three variables that were entered are assigned to Name,tall,weight.
At run time, arguments follow the script name.
python-Basic Primer-2