摘要: 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.py a:1 b:2 c:3 Process finis... 阅读全文
posted @ 2018-12-09 20:57 effortsing 阅读(210) 评论(0) 推荐(0) 编辑
摘要: ssh://root@192.168.0.204:22/usr/bin/python -u /home/progect/app/py_code/test1.py[0, 1, 2, 3, 4] 阅读全文
posted @ 2018-12-09 17:49 effortsing 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 1、创建元祖 tup1 = ('jenkins','mysql') print(tup1) ssh://root@192.168.0.204:22/usr/bin/python -u /home/progect/app/py_code/test1.py ('jenkins', 'mysql') Process finished with exit code 0 2、访问元祖 tup... 阅读全文
posted @ 2018-12-09 17:47 effortsing 阅读(131) 评论(0) 推荐(0) 编辑
摘要: 问题: 用pycharm每次修改代码后第一次运行还是原来的结果,运行第二次的时候才是修改后代码的结果 解决: 每次修改代码后保存一下即可解决 阅读全文
posted @ 2018-12-09 15:27 effortsing 阅读(4364) 评论(0) 推荐(0) 编辑