Commit 12cf3c24 by BellCodeEditor

save project

parent fc94b930
Showing with 12 additions and 9 deletions
username = "python" # 保存在服务器数据库中的用户账号(正确的账号) username = "python" # 保存在服务器数据库中的用户账号(正确的账号)
userpassword = "123456" # 保存在服务器数据库中的用户密码(正确的密码) userpassword = "1210" # 保存在服务器数据库中的用户密码(正确的密码)
#cishu=0
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
name=input('请输入加密暗号:')
password=input('请输入加密密码:')
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
if username==name and userpassword==password: while True:
print('0;破译成功;0') name=input('请输入加密暗号:')
else: password=input('请输入加密密码:')
print('1;破译失败,正在连接反破译服务器;1') if username==name and userpassword==password:
\ No newline at end of file print('0;破译成功,正在进入Y国军部服务器,稍等;0')
break
print('1;破译失败,正在连接反破译服务器。请重新破译;1')
print('进入成功,欢迎来到Y军部网络指挥部')
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment