 python3学习手册python各版本发布时间: 2.0.1 2001-06-22 3.7.0 2018-06-27 2.7.0 2010-07-03 3.8.0 2019-10-14 2.7.5 2013-05-15 3.9.0 2020-10-05 2.7.18 2020-04-20 3.9.16 2022-12-06 3.0.1 2009-02-13 3.10.0 2021-10-04 3.5.0 2015-09-13 #日期有05 import time print(time.ctime(time.time())) print(time.asctime(time.localtime())) #同 time.ctime() #日期就一个 5 ④时间字符串转为时间结构体 import time timestr="Tue Apr 05 22:22:15 2022" strptime(timestr,"%a %b %d %H:%M:%S %Y") print(t) print(type(t)) ⑤时间结构体转为时间戳 import time timestr="Tue Apr 05 22:22:15 2022" t=time.strptime(timestr,"%a %b %d %H:%M:%S %Y") tstamp=time.mktime(t) #时间结构体转为时间戳0 码力 | 213 页 | 3.53 MB | 1 年前3 python3学习手册python各版本发布时间: 2.0.1 2001-06-22 3.7.0 2018-06-27 2.7.0 2010-07-03 3.8.0 2019-10-14 2.7.5 2013-05-15 3.9.0 2020-10-05 2.7.18 2020-04-20 3.9.16 2022-12-06 3.0.1 2009-02-13 3.10.0 2021-10-04 3.5.0 2015-09-13 #日期有05 import time print(time.ctime(time.time())) print(time.asctime(time.localtime())) #同 time.ctime() #日期就一个 5 ④时间字符串转为时间结构体 import time timestr="Tue Apr 05 22:22:15 2022" strptime(timestr,"%a %b %d %H:%M:%S %Y") print(t) print(type(t)) ⑤时间结构体转为时间戳 import time timestr="Tue Apr 05 22:22:15 2022" t=time.strptime(timestr,"%a %b %d %H:%M:%S %Y") tstamp=time.mktime(t) #时间结构体转为时间戳0 码力 | 213 页 | 3.53 MB | 1 年前3
 k8s操作手册 2.3#base64编码 username: cm9vdA== #base64编码 kind: Secret metadata: crea�onTimestamp: "2023-12-05T21:19:48Z" name: database-auth namespace: default resourceVersion: "1167" uid: 38790a7e-300 码力 | 126 页 | 4.33 MB | 1 年前3 k8s操作手册 2.3#base64编码 username: cm9vdA== #base64编码 kind: Secret metadata: crea�onTimestamp: "2023-12-05T21:19:48Z" name: database-auth namespace: default resourceVersion: "1167" uid: 38790a7e-300 码力 | 126 页 | 4.33 MB | 1 年前3
共 2 条
- 1














