python1.2 tuples and dictionaries:

# Define tuples (), a list of tuples with elements similar, but not change
a = (1,2,3,4,5,6, "a" , "b", "c", "d", "e "," F ")
Print (A)

# Dictionary definition {key: value}, a key quickly find the value
B = { "name": "Bob", "age": 18, "hobby": " Chess"}
#key not be repeated, value may be repeated
print (b )
Print (B [ "Age"])

Guess you like

Origin www.cnblogs.com/lma0702/p/11106198.html