Commit 26ddd4e8 by BellCodeEditor

save project

parent 2de9adcb
Showing with 12 additions and 23 deletions
i = 3 import turtle
username = "python" pen=turtle.Pen()
userpassword = "123456" screen=turtle.Screen()
while True: screen.bgcolor("black")
if i>0: colors=["green","purple","red","orange"]
name = input("请输入用户名:") for i in range(1,300,2):
password = input("请输入密码:") pen.forward(i)
i-=1 pen.pencolor(colors[i%4])
if name == username and password == userpassword: pen.right(91)
print("登录成功!") pen.hideturtle()
break turtle.done()
if name != username: \ No newline at end of file
print("用户名错误!请重新输入!")
print("fgkbjs" + str(i) + "jysdgj")
continue
if password != userpassword:
print("密码错误!请重新输入!")
print("fgkbjs" + str(i) + "jysdgj")
else:
print("suoding!")
exit()
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