摘要:
count=0 while True: print('count:',count) count+=1 # count=count+1 if count==500: break#结束整个循环 阅读全文
摘要:
_username='qi' _password='abc123' username=input("username:") password=input('password:') if _username==username and _password==password: print("welcome user {name}...".format(name=username)) els... 阅读全文
摘要:
#1、python2中raw_input与python3中的input是相同的,python2中也有input但是别用(不好用,忘记它) #密码是明文的 username=input("username:") password=input('password:') print(username,password) #2、密码变成密文 import getpass username=input(... 阅读全文