摘要: 官方文档:https://pyyaml.org/wiki/PyYAMLDocumentation安装: pip install pyyaml导入:import yaml常用方法:import yamldocument = """ a: 1 b: c: 3 d: 4"""print yaml.dump 阅读全文
posted @ 2019-07-09 16:06 walle_ok 阅读(2203) 评论(0) 推荐(1) 编辑
摘要: # 安装pip install pymysql# 创建连接connection = pymysql.connect(host=host, user=user, password=passwd, port=3306, db=db)# 创建游标with connection.cursor()as cur 阅读全文
posted @ 2019-07-09 16:00 walle_ok 阅读(181) 评论(0) 推荐(0) 编辑
摘要: logging 阅读全文
posted @ 2019-07-09 15:53 walle_ok 阅读(940) 评论(0) 推荐(0) 编辑
摘要: ddt 阅读全文
posted @ 2019-07-09 15:28 walle_ok 阅读(283) 评论(0) 推荐(0) 编辑