先看程式碼: In [1]: a = {'name': 'wang'} In [2]: a.get('age') In [3]: a['age'] ... python dict.get()和dict['key']的區別詳解.
確定! 回上一頁