Dictionany
Ví dụ:
point = {'x': 1, 'y': 2}Ví dụ:
point = {'x': 3, 'y': 6, 'z' : 9}
print point[x]
# Hiển thị 3Thêm một phần tử
Ví dụ:
user = {'name': 'Jone', 'age': 30}
user['country'] = 'Vietnam'
print user
# Hiển thị {'country': 'Vietnam', 'age': 30, 'name': 'Jone'}Một số hàm, phương thức thông dụng:
Follower me
Last updated