python_for_else_return】的更多相关文章

def login(): # 登录 # 登录 输入用户名密码 # 和self.user_list作比对 while True: username = input('用户名 :') # password = input('密 码 :') # user_list=SC.getallstudents() user_list=["a","b","c","d"] for user in user_list: if username ==…