这种写法可以么?
来源:6-10 常量与Pylint的规范
优益Co
2018-09-19
account = 'qiyue’
password = ‘123456’
print(‘请输入用户名’)
user_account = input()
print(‘请输入密码’)
user_password = input()
if user_account == ‘qiyue’ and user_password == ‘123456’:
print(‘success’)
else:
print (‘fail’)
写回答
1回答
-
weibo_锤锤锤锤锤锤i石_0
2018-09-19
account = 'qiyue' password = 123456 user_account = input('请输入用户名:') user_password = int(input('请输入密码:')) if user_account == 'qiyue' and user_password == 123456: print('success') else: print ('fail')
00
相似问题