一、Python種字典的使用: 用大括號 使用鍵值對的形式表示 類似於Map
phone_number = {"guo": 123456, "haha": 3232323, "heihei": 232323}
print("guo has phone number " + str(phone_number['guo']))
//根據鍵值刪除
del phone_number["guo"]
//刪除全部
phone_number.clear()
二、詞典的特性:
1.不允許同一個鍵出現兩次,鍵必須是獨一無二的
2.可以用元組當做key,但絕不能用list當做鍵