Commit 2e84a9bb by BellCodeEditor

save project

parent efa2d4a0
Showing with 15 additions and 11 deletions
import turtle username="phthon"
screen=turtle.Screen() userpassword="123456"
screen.bgcolor("black") while True:
pen=turtle.Pen() name=input("请输入账号")
colors=["red","orange","yellow","green"] password=input("请输入密码")
for i in range(1,300): if name==username and password==userpassword:
pen.color(colors[i%4]) print("登录成功")
pen.forward(i) break
pen.right(91) elif name!=username:
turtle.hideturtle() print("账号不存在,请重新输入")
turtle.done() else :
print("账号不存在,请重新输入")
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