💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
~~~ In [1]: import time In [2]: print (time.time()) 1525967089.60648 In [3]: print (time.localtime(time.time())) time.struct_time(tm_year=2018, tm_mon=5, tm_mday=10, tm_hour=23, tm_min=45, tm_sec=5, tm_wday=3, tm_yday=130, tm_isdst=0) In [4]: print(time.asctime(time.localtime(time.time()))) Fri May 11 00:26:30 2018 In [5]: print(time.strftime('%Y-%m-%d %H:%M:%S',time.localtime())) 2018-05-11 00:28:12 ~~~ 日历 ~~~ In [6]: import calendar In [7]: print(calendar.month(2017,11)) November 2017 Mo Tu We Th Fr Sa Su 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 ~~~