Commit 08d61efc by BellCodeEditor

save project

parent 4fb0b1ca
Showing with 4 additions and 22 deletions
i=3
while True:
username="姜栋浩"
userpassword="123456"
name=input("请输入用户名")
password=input("请输入密码")
if username==name and userpassword==password:
print("登陆成功")
break
if username != name:
print("用户名错误")
print("宁还有"+str(i)+"次机会")
i=i-1
if userpassword != password:
print("密码错误")
print("宁还有"+str(i)+"次机会")
i=i-1
if i==0:
print("爬!!!!!你不是号主!!!!拿着身份证来见我吧!")
exit()
print("欢迎来到贝尔编程")
j=7
print(i,"×",j,"=",i*j)
......@@ -3,8 +3,8 @@ pen=turtle.Pen()
screen=turtle.Screen()
screen=screen.bgcolor("black")
colors=["green","red","orange","yellow","purple","blue"]
for i in range(1,300):
for i in range(1,900):
pen.pencolor(colors[i%6])
pen.forward(i)
pen.forward(i/2)
pen.right(91)
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