sh_05_ list traversal

 

sh_05_ list traversal

= NAME_LIST [ " Joe Smith " , " John Doe " , " Wang Wu " , " Wang Xiaoer " ] 

# Use iterate through the list of 
"" " 
get the order from the list and then click Data, each cycle, the data will be saved in 
my_name this variable in the loop inside the body can have access to current and this time captured data 

for my_name in the list of variables: 

    Print ( "my name% S"% my_name) 

"" " 
for my_name in NAME_LIST: 

    Print ( " my name S% " % my_name)

 

Guess you like

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