time调用

###Python核心编程\基础教程\流畅的python\数据结构与算法(机械工业出版)\cook book
# import time
# class Time:
# def __init__(self,year,month,day):
# self.year=year
# self.month=month
# self.day=day
# @classmethod
# def gettime(cls):
# struct_t=time.localtime()
# data=cls(struct_t.tm_year,struct_t.tm_mon,struct_t.tm_mday)
# return data
#
# #老男孩视频153,32分钟
# t1=Time.gettime()
# print(t1.year)
# print(t1.month)
# print(t1.day)

posted @ 2022-09-19 11:33  红丿领巾  阅读(23)  评论(0)    收藏  举报