摘要: import random# print(random.random()) # 0.10087 取0到1的随机小数# print(random.randint(1, 3)) # 2 取1到3的整数1和3都可以取到# print(random.randrange(1, 3)) # 取1到3的整数,不包 阅读全文
posted @ 2021-06-13 19:34 点滴180 阅读(31) 评论(0) 推荐(0)
摘要: import time# time模块time.time()# 时间戳,可以查看当前时间距离1970年经过了多少秒print(time.time())# 格式化的字符print(time.strftime('%Y-%m-%d %H:%M:%S')) # 可以查看当前时间res = time.loca 阅读全文
posted @ 2021-06-13 18:28 点滴180 阅读(35) 评论(0) 推荐(0)
摘要: print('请选择注册还是登录(y/n)')choice = input('choice>>>:')if choice == 'y': import login login.f1() # 用户注册模块的调用elif choice == 'n':# def f2(): d = {} with ope 阅读全文
posted @ 2021-06-13 16:56 点滴180 阅读(55) 评论(0) 推荐(0)