Python入门(十三)——重要模块复习(time、random、os、sys、hashlib)

1 time 模块

常用时间种类

  • 时间戳
  • 结构时间
  • 字符串时间
import time

'''时间戳'''
#当前时间(从1970-1-1 00:00:00)
s = time.time()
print(s) #

猜你喜欢

转载自blog.csdn.net/HMMorange/article/details/104588528