使用time模块打印当前时间

5年以前  |  阅读数:827 次  |  编程语言:Python 
# 导入time模块
>>> import time
# 打印当前时间,返回浮点数
>>> seconds = time.time()
>>> seconds
1588858156.6146255

Copyright© 2013-2020

All Rights Reserved 京ICP备2023019179号-8