This topic created in 2445 days ago, the information mentioned may be changed or developed.
如何将一个具体的 年月日时分秒(例如 2019 年 9 月 21 日 14:27:45 )转化为数值,像 time.time()获取到的数值。
3 replies • 2019-09-22 08:04:41 +08:00
 |
|
1
zjqzxc Sep 21, 2019 1
import time time.mktime(time.strptime("2019 年 9 月 21 日 14:27:45","%Y 年%m 月%d 日 %H:%M:%S"))
|
 |
|
2
zjqzxc Sep 21, 2019
v 站自己给补了一堆空格,需要删除一下
|