Commit a579cacb by BellCodeEditor

save project

parent 38a80c76
Showing with 12 additions and 22 deletions
i=3
userName="python"
passWord="123456"
while True:
if i>0:
name=input("请输入账号")
perPassWord=input("请输入密码")
i-=1
print("当前还剩下"+str(i)+"次机会")
if name==userName and perPassWord==passWord:
print("账号密码正确")
break
if name!=userName:
print("账号错误")
continue
if name==userName and perPassWord!=passWord:
print("密码错误")
else:
print("你的账号已被锁定,请带身份证来我公司进行登录")
exit()
print("登录成功,欢迎来到贝尔编程")
\ No newline at end of file
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("light white")
distance=1
pen.speed(100)
for i in range(1,300):
pen.forward(i)
pen.right(91)
pen.hideturtle()
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