sh_06_ personal information

 

sh_06_ personal information

1  "" " 
2  Name: Xiao Ming
 3  Age: 18 years old
 4  Gender: boys
 5  Height: 1.75 m
 6  Weight: 75.0 kg
 7  " "" 
8  
9  # In Python, the definition of variables does not require the type specified variable 
10  # at run time, Python interpreter, according to the data on the right side of the equal sign of the assignment statement 
11  # automatically deduce the exact type of data stored in the variable 
12 is  # STR is represented by a string type 
13 is name = " Bob " 
14  # int represents an integer type 
15 Age = 18
 16  # BOOL representation is a Boolean type, true or false true false 
. 17 Gender = false   # than 
18 # A float type represented by a decimal, floating-point number 
. 19 height 1.75 =
 20 is  
21 is weight = 75
 22 is  
23 is  Print (name)

 

Guess you like

Origin www.cnblogs.com/shaohan/p/11465046.html