摘要: 1.数据库模块pymysql 2. http模块urllibrequestsurllib 3.日志logging 4.excelxlrd 阅读全文
posted @ 2019-09-11 16:31 M兔 阅读(163) 评论(0) 推荐(0) 编辑
摘要: #-*-coding:utf-8-*- import pymysql.cursors from pymysql.err import * import Log from common.setting import * log = Log.getLogger() ''' MySQL工具类 ''' class MySqlUtil: @staticmethod def connect(dbInfo): 阅读全文
posted @ 2019-09-11 16:07 M兔 阅读(195) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 from urllib.error import URLError import requests import common.Log as Log import ssl import urllib import os ''' @author: jinff @license: (C) Copyright 2016-2020, 中国制造 @contact: @file... 阅读全文
posted @ 2019-09-11 16:00 M兔 阅读(181) 评论(0) 推荐(0) 编辑
摘要: #coding:utf-8 import logging from logging import handlers from datetime import datetime import threading import os ''' logging模块简介 Python的logging模块提供了通用的日志系统,可以方便第三方模块或者是应用使用。这个模块提供不同的日志级别,并可以采用不同的方式记 阅读全文
posted @ 2019-09-11 15:58 M兔 阅读(270) 评论(0) 推荐(0) 编辑