Commit ed1ad79d by BellCodeEditor

save project

parent e1c0e7d5
Showing with 5 additions and 0 deletions
...@@ -2,12 +2,16 @@ u= "594188" # 保存在服务器数据库中的用户账号(正确的账号 ...@@ -2,12 +2,16 @@ u= "594188" # 保存在服务器数据库中的用户账号(正确的账号
d= "123456" # 保存在服务器数据库中的用户密码(正确的密码) d= "123456" # 保存在服务器数据库中的用户密码(正确的密码)
w="0" w="0"
i="0" i="0"
import turtle
while not u==w and not d==i: while not u==w and not d==i:
w=input("账号:") w=input("账号:")
i=input("密码:") i=input("密码:")
# 请用input()实现用户输入账号、密码的功能 # 请用input()实现用户输入账号、密码的功能
if u==w and d==i: if u==w and d==i:
print("登陆成功!") print("登陆成功!")
print("欢迎来到贝尔编程!")
p=turtle.Pen()
turtle.done()
else: else:
print("账号或密码错误!") print("账号或密码错误!")
# 如果用户输入的账号、密码正确,提示登陆成功 # 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
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