摘要:
Python classmethod 修饰符简单使用 class A(object): value = 1 def func1(self): print('func1') @classmethod def func2(cls): print('func2') print(cls.value) cls 阅读全文
posted @ 2020-08-30 19:42
我不是萧海哇~~~
阅读(201)
评论(0)
推荐(0)
摘要:
Python获取当前时间及格式化import time # 打印时间戳print(time.time())# 格式化时间戳为本地的时间print(time.localtime(time.time()))# 优化格式化化版本print(time.strftime('%Y-%m-%d %H:%M:%S' 阅读全文
posted @ 2020-08-30 13:28
我不是萧海哇~~~
阅读(1172)
评论(0)
推荐(0)

浙公网安备 33010602011771号