📜  dict ittererator python recursive - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:08.800000             🧑  作者: Mango

代码示例1
def myprint(d):
      for k, v in d.items():
        if isinstance(v, dict):
          myprint(v)
        else:
          print "{0} : {1}".format(k, v)