Commit 03adddfe by BellCodeEditor

save project

parent ba207fc7
Showing with 15 additions and 40 deletions
import time import turtle
def shua(): pen=turtle.Pen()
for i in range(100): pen.pencolor("blue")
print(" ") for i in range(3):
#exit()#退出程序 pen.forward(100)
username = "python" pen.left(120)
userpassword = "123456" pen.up()
i=5 pen.goto(0,60)
shua() pen.down()
while True: for i in range(3):
if i==0: pen.forward(100)
shua() pen.left(-120)
print("五次机会已用完!") turtle.fillcolor("light blue")
time.sleep(1) pen.begin_fill()
shua() \ No newline at end of file
asdf=10
for i in range(10):
print(str(asdf)+"秒后继续")
time.sleep(1)
asdf-=1
shua()
i=5
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
shua()
elif username!=name:
print("用户名错误!")
i-=1
print("剩余次数"+str(i)+"次!")
elif password!=userpassword:
print("密码错误!")
i-=1
print("剩余次数"+str(i)+"次!")
time.sleep(1)
shua()
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