Commit 14efc65f by BellCodeEditor

save project

parent 4eb41c4d
Showing with 7 additions and 30 deletions
import turtle
import turtle
import turtle
pen=turtle.Pen()
sb=1
for i in range(300)
pen.forward(sb)
for i in range(1,300):
pen.forward(i)
pen.right(91)
sb=+1
\ No newline at end of file
turtle.done()
\ No newline at end of file
i=3
import turtle
i=3
usename = "python"
userpassword = "123456"
while True:
if i>0:
a=input("你的账号是啥子?")
b=input("你的密码是啥子?")
i-=1
if a==usename and b==userpassword:
print("正确")
break
if a != usename:
print("账号登录失败")
print("你还有"+str(i)+"次机会")
continue
if b != userpassword:
print("密码登录失败")
print("你还有"+str(i)+"次机会")
else:
print("你的账号输入错误,你的钱没了")
exit()
print("欢迎进入")
import turtle
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