#密码密文展示,getpass在pycharm中无法使用,只能在python中使用
import getpass
#登录判断
'''
raw_name="Monica"
raw_password="123456"
name = input("username:")
password = input("password:")
if name == raw_name and password == raw_password:
print("Welcome {_name} login".format(_name=name))
else:
print("Invalid usename or password")
'''
#年龄判断 while循环 break 跳出循环
'''
age_oldboy = 56
count = 0
while count<3:
guess_age = int(input("guess age:"))
if guess_age == age_oldboy:
print("yes,you got it.")
break
elif guess_age >= age_oldboy:
print("think smaller...")
else:
print("think bigger...")
count += 1
if count == 3:
countine_confire = input("do you want to keep guessing?")
if countine_confire != 'n':
count = 0
#if count == 3: 或者else
else:
print("you have tried too many times..fuck off")
'''