思维还有点乱,撸代码到深夜,先上代码吧.(我是跟着武sir的思路的) 流程图: 代码(有注释): #!/usr/bin/env python # -*- coding:utf-8 -*- import json,os def login(): flag = False while True: username = input("Please enter a user name:") l = open('name_lock.txt','r') for lline in l.readlin…
用户的配置文件如下 backend oldboy school school1 age 21 weight 210 qq 550176565 iphone 139987676backend oldgirl school school2 age 22 weight 220backend oldteacher school school3 age 23 weight 230backend oldstudent school school4 age 24 weight 240 作业要求: 1.实现查询…