Commit 150684bc by BellCodeEditor

save project

parent 124c28ce
Showing with 34 additions and 32 deletions
import turtle
pen .=turtle.pen().
d=1.
for i in rarie(3,0):
pen.forward(d)
pen.light
d+ =1
turtle.done()
i = 5
z = "1"
m = "2"
while True:
if i>0:
z1 = input("请输入账号:")
m1 = input("请输入密码:")
i-=1
if z == z1 and m == m1:
print("登录成功")
break
if z != z1:
print("账号错误")
print("你还剩"+str(i)+"次机会")
continue
if m != m1:
print("密码错误")
print("你还剩"+str(i)+"次机会")
continue
else:
print("账号锁定")
exit()
print("欢迎来到未来世界")
\ No newline at end of file
z = "1"
m = "2"
i = 3
while True:
if i>0:
z1=input("请输入账号:")
m1=input("请输入密码:")
i = i-1
if z == z1 and m == m1:
print("登录成功")
break
if z != z1:
print("账号错误")
print("你还有"+str(i)+"次机会")
continue
if m != m1:
print("密码错误")
print("你还有"+str(i)+"次机会")
continue
else:
print("你的账号已锁定一辈子")
exit()
print("欢迎来到未来世界")
\ No newline at end of file
import turtle
turtle.screensize(bg = "black")
pen = turtle.Pen()
yan = ["red","orange","yellow","green"]
for i in range(1,300,1):
pen.pencolor(yan[i%4])
pen.forward(i)
pen.left(91)
turtle.done()
\ 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