摘要:
# 定义 class T: a = 123 #类属性 def func(self): #类方法 pass @classmethod def classfunc(cls): pass @staticmethod def staticfunc(): ... 阅读全文
posted @ 2019-01-22 15:49
我是外婆
阅读(295)
评论(0)
推荐(0)
摘要:
import logging from logging import FileHandler, Formatter import os.path as fpath from datetime import datetime logfile = fpath.join(fpath.dirname(fpath.abspath(__file__)),datetime.now().strftime('%Y... 阅读全文
posted @ 2019-01-22 14:29
我是外婆
阅读(565)
评论(0)
推荐(0)