Commit 8a409675 by BellCodeEditor

save project

parent 07e0aad0
Showing with 9 additions and 23 deletions
i=3
username = "python"
userpassword = "123456"
while True:
if i>0:
name = input("请输入用户名:")
if name != username:
print("没有此账号")
i-=1
print("温馨提示:你还有"+str(i)+"次登录机会")
else:
password = input("请输入密码:")
if password != userpassword:
print("不匹配")
i-=1
print("温馨提示:你还有"+str(i)+"次登录机会")
else:
print("登录成功!")
break
else:
print("你的登录次数已经用完")
exit()
\ No newline at end of file
import turtle
pen = turtle.Pen()
i = 10
for i in range(300):
pen.forward(i)
pen.right(91)
i += 2
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