Commit 2e84a9bb by BellCodeEditor

save project

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