摘要: 1.修改当前登录用户的 ssh 环境变量文件(没有则新增) vim ~/.ssh/config 2.根据需求,定义需要连接的主机的私钥路径(可以定义多个不同的主机) Host github.com User git Hostname github.com IdentityFile ~/data/.s 阅读全文
posted @ 2020-04-12 10:15 lowmanisbusy 阅读(3051) 评论(0) 推荐(0) 编辑
摘要: 1.使用官方模块 pprint 格式化打印 dict 数据 import pprint # indent:定义几个空格的缩进 pp = pprint.PrettyPrinter(indent=2) info = dict(age=50, money=0, a=1, b=dict(h=7, i=8, 阅读全文
posted @ 2020-04-12 10:07 lowmanisbusy 阅读(5515) 评论(0) 推荐(0) 编辑