This commit is contained in:
2026-06-08 00:49:29 +08:00
parent 6c976fc8bb
commit 90fc1c041a
2 changed files with 12 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
user_name = input("请输入用户名")
pwd = input("请输入密码")
if user_name == 'chenxuan' and pwd == '123456':
print("登录成功")
else:
print("xxxxx")
+6
View File
@@ -0,0 +1,6 @@
user_name = input("请输入用户名")
pwd = input("请输入密码")
if (user_name == 'chenxuan' or pwd == '123456'):
print("登录成功")
else:
print("xxxxx")