Commit 03adddfe by BellCodeEditor

save project

parent ba207fc7
Showing with 15 additions and 40 deletions
import time
def shua():
for i in range(100):
print(" ")
#exit()#退出程序
username = "python"
userpassword = "123456"
i=5
shua()
while True:
if i==0:
shua()
print("五次机会已用完!")
time.sleep(1)
shua()
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
import turtle
pen=turtle.Pen()
pen.pencolor("blue")
for i in range(3):
pen.forward(100)
pen.left(120)
pen.up()
pen.goto(0,60)
pen.down()
for i in range(3):
pen.forward(100)
pen.left(-120)
turtle.fillcolor("light blue")
pen.begin_fill()
\ 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