account = 'fzn'
password = 'rich'
print('please input account')
user_account = input()
print('please input password')
user_password = input()
if account == user_account and password == user_password :
print('welcome')
else :
print('sorry')
########################下面是terminal
appledeMacBook-Pro:练习代码 apple$ python test0.py
please input account
fzn
Traceback (most recent call last):
File "test0.py", line 5, in <module>
user_account = input()
File "<string>", line 1, in <module>
NameError: name 'fzn' is not defined