摘要: # 注册:# 1、账号、密码存到文件# 2、判断输入是否为空# 3、校验用户是否存在# 4、用户名和密码长度在6-12位之间#将文件读取到字典中def get_users(): f = open('1.txt', 'r', encoding='UTF-8') user = {} f.seek(0) 阅读全文
posted @ 2019-11-16 17:37 琳淼 阅读(206) 评论(0) 推荐(0) 编辑
摘要: #函数def welcome(): print('欢迎你')welcome()def write_file(file_name,cotent): f = open(file_name,'a+',encoding='UTF-8') f.write(cotent) f.seek(0) x = f.rea 阅读全文
posted @ 2019-11-16 11:12 琳淼 阅读(156) 评论(0) 推荐(0) 编辑