.keys()Python中带方法和不带方法的字典中的for循环有什么区别.keys()?
.keys()
thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } for i in thisdict: print(i) for i in thisdict.keys(): print(i)
有什么不同?
python dictionary for-loop key
dictionary ×1
for-loop ×1
key ×1
python ×1