1、遍历字典dict={ 'a': '1', 'b': '2', 'c': '3'}for key in dict: print(key+':'+dict[key])ssh://root@192.168.0.204:22/usr/bin/python -u /home/progect/app/py_code/test1.pya:1b:2c:3Process finished with exit code 0
本文共 266 字,大约阅读时间需要 1 分钟。
1、遍历字典dict={ 'a': '1', 'b': '2', 'c': '3'}for key in dict: print(key+':'+dict[key])ssh://root@192.168.0.204:22/usr/bin/python -u /home/progect/app/py_code/test1.pya:1b:2c:3Process finished with exit code 0
转载于:https://www.cnblogs.com/effortsing/p/10093198.html