用户名、密码提前设置,返回用户登录成功或失败的结果
name="热孜娅" pwd=123 def login(uname,upwd): if uname==name and upwd==pwd: return 1 else: return 0 print(login("热孜娅",123))
用户名、密码提前设置,返回用户登录成功或失败的结果
name="热孜娅" pwd=123 def login(uname,upwd): if uname==name and upwd==pwd: return 1 else: return 0 print(login("热孜娅",123))