d = { 'x':42, 'y':3.14, 'z':7 } d['x'] # 42 d['z'] # 7 d['a'] # raises KeyError exception. Plain assignment to a dictionary indexed with a key that is not ...
確定! 回上一頁