sh_07_ tuple traversal

 

sh_07_ tuple traversal

= info_tuple ( " zhangsan " , 18, 1.75 ) 

# using iterate through tuples 
for my_info in info_tuple: 

    # use format string concatenation my_info this variable is not convenient! 
    # Because the tuple is usually saved data types are different! 
    Print (my_info)

 

Guess you like

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