numpy-dictionary

d ={'peter': 'handsome', 'shutong':'cute'}#key:value print('peter' in d)#is in ? print(d['peter'])#下標訪問內容 d['1']='11' print(d['1']) print(d['shutong']) del d['1'] print('1' in d) f = {'person':2, 'do
本站公眾號
   歡迎關注本站公眾號,獲取更多信息