What is the best way to iterate dictionary keys in Python

前端 未结 0 695
感动是毒
感动是毒 2021-01-05 18:06

What is the best way to iterate dictionary keys in Python? should I use the keys() function or not? for example:

for k in dict:
      do somthing
相关标签:
回答
  • 消灭零回复
提交回复
热议问题