摘要: (1)数据库类import pymysqlclass MyCoonect(object): def __init__(self, host, port, user, passwd, db, charset='utf8'): self.__host = host self.port = port se 阅读全文
posted @ 2017-11-28 11:25 蓝夏Jmy 阅读(288) 评论(0) 推荐(0) 编辑
摘要: r = requests.get(url).contentf = open(r'F:\test\a%s'%i, 'wb')f.write(r) 阅读全文
posted @ 2017-11-28 09:26 蓝夏Jmy 阅读(295) 评论(0) 推荐(0) 编辑