标签:orm password form ase inpu bigger val login invalid
2019-01-01
一、单个逻辑处理
_username = ‘Izaiah‘
_password = ‘123‘
username = input("username:")
password = input("password:")
if _username == username and _password == password :
print("Welcome user {name} login..." .format(name=username))
else:
print("Invalid username or password!")
二、多个逻辑处理
age_of_oldboy = ‘56‘
guss_age = input("guss the age:")
if guss_age == age_of_oldboy :
print("yes,you got it.")
elif guss_age > age_of_oldboy :
print("please guss smaller.")
else:
print("please guss bigger.")
标签:orm password form ase inpu bigger val login invalid
原文地址:https://www.cnblogs.com/study-notes-of-python/p/10204653.html