Commit 73b9f693 by BellCodeEditor

save project

parent 1b40da9a
Showing with 6 additions and 14 deletions
username = "python" import turtle
userpassword = "123456" t=turtle.Pen()
while True: for i in range(1,301):
name = input("请输入用户名:") t.forward(i)
if name == username: t.right(91)
password = input("请输入密码:") turtle.done()
if userpassword==password:
print("登录成功!")
print("欢迎来到贝尔编程!")
else:
print("密码错误!请重新输入")
else:
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