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:... 阅读全文
posted @ 2018-06-06 19:32 zipon 阅读(241) 评论(0) 推荐(0) 编辑
摘要:将该方法放在根目录下面,在其他类中直接import 该方法。 阅读全文
posted @ 2018-06-05 19:38 zipon 阅读(3786) 评论(0) 推荐(0) 编辑
摘要:#! /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) ... 阅读全文
posted @ 2018-06-04 14:50 zipon 阅读(264) 评论(0) 推荐(0) 编辑
摘要:# 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... 阅读全文
posted @ 2018-06-04 14:49 zipon 阅读(1663) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示