摘要:
1 import random 2 3 4 print(random.random()) # 随机从0-1之间的随机数 5 6 print(random.randint(1,10)) # 随机从0-1之间的随机数 7 8 print(random.choice('hello')) # 随机其中一个字 阅读全文
posted @ 2020-05-14 14:24
yangzhuxian
阅读(172)
评论(0)
推荐(0)
摘要:
1 import time 2 import datetime 3 4 print(datetime.datetime.now()) # 2020-04-23 13:47:14.056681 5 6 # time.sleep(3) # 程序停止 单位秒 7 8 # 时间戳 从UNUX到今天一共的秒数 阅读全文
posted @ 2020-05-14 14:22
yangzhuxian
阅读(133)
评论(0)
推荐(0)