Commit aa8704e9 by BellCodeEditor

save project

parent ed858d46
Showing with 13 additions and 22 deletions
i=3
username = "python"
userpassword = "123456"
while True:
if i>0:
name=input("请输入账号")
name2=input("密码")
i-=1
if name==username and name2==userpassword:
print("成功")
break
elif name != username:
print("账号错误")
print("温馨提示你还有"+str(i)+"机会")
else:
print("密码错误")
print("温馨提示你还有"+str(i)+"机会")
else:
print("账户锁定,请来我这解决")
exit()
print("欢迎来到贝儿")
\ No newline at end of file
import turtle
pen=turtle.Pen()
distance=1
for i in range(300):
pen.forward(distance)
right(91)
distance+=1
pen.right(121)
pen.hireturtle()
turtle.done()
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