06 2018 档案
摘要:import random import itchat def randomRed(): red = [] while len(red)!=6: redtemp = random.randint(1,33) if redtemp not in red: red.append(redtemp) else:...
阅读全文
摘要:将该方法放在根目录下面,在其他类中直接import 该方法。
阅读全文
摘要:#! /usr/bin/env python # coding=GBK import logging, os class Logger: def __init__(self, path, clevel=logging.DEBUG, Flevel=logging.DEBUG): self.logger = logging.getLogger(path) ...
阅读全文
摘要:# coding=utf8 import requests from common.logger import Logger import logging class httpUtils: logger = Logger("../logs/http.log",logging.INFO,logging.INFO) def get(self,url,params={},header...
阅读全文