摘要:
区分几个容易出错的地方: in 成员运算符 - 如果字符串中包含给定的字符返回 True >>>"H" in a True not in 成员运算符 - 如果字符串中不包含给定的字符返回 True >>>"M" not in a True 代码中经常会有变量是否为None的判断,有三种主要的写法: 阅读全文
摘要:
需求:.编写登录接口·输入用户名密码·认证成功后显示欢迎信息·输错三次后锁定 # Author rendeleiwhile True: list1 = [] list2 = [] count = int(3) f = open("login.txt",‘w+’) for line in f: hos 阅读全文