摘要: #!/user/bin/python3#coding=utf-8#2019/10/20 --13:17#author :huiimport json,requests#封装 get和post方法class Method: #post 方法 def post(self,url,body,headers 阅读全文
posted @ 2019-10-21 16:13 yanhuidj 阅读(272) 评论(0) 推荐(0) 编辑
摘要: import logging# 创建logger 对象logger = logging.getLogger()#设置log级别logger.setLevel(logging.DEBUG)# 保存到当前目录logfile = './log.txt'#a表示追加fh = logging.FileHand 阅读全文
posted @ 2019-10-21 14:16 yanhuidj 阅读(238) 评论(1) 推荐(0) 编辑
摘要: #!/user/bin/python3#coding=utf-8#2019/10/21 --10:04#author :huiimport xlrdfile = r'C:\Users\hui\Desktop\data.xlsx'data = xlrd.open_workbook(file) # 创建 阅读全文
posted @ 2019-10-21 10:56 yanhuidj 阅读(319) 评论(0) 推荐(0) 编辑