本教程演示瞭如何在Python 中從字典中獲取鍵的值. ... 3:"i", 5:"j"} try: print(mydict[2]) print(mydict[4]) except KeyError: print("KeyNotFound!
確定! 回上一頁