Commit d34a0464 by BellCodeEditor

save project

parent a5d88f2a
Showing with 23 additions and 1 deletions
username = "p"
userpassword = "1"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
break
if name != username and password == userpassword:
print("用户名错误!请重新输入")
continue
if name == username and password != userpassword:
print("密码错误!请重新输入")
continue
print("用户名和密码错误!请重新输入")
print("登录成功!")
print("欢迎来到贝尔编程!")
\ No newline at end of file
......@@ -2,12 +2,15 @@ import turtle
p=turtle.Pen()
x=-100
y=0
l=["red","yellow","blue","black",""]
o=0
i=["red","yellow","blue","black","green"]
for i in range(3):
p.fillcolor(i[o])
p.up()
p.goto(x,y)
p.down()
p.circle(50)
o=o+1
x=x+100
x=-50
y=-80
......@@ -17,4 +20,5 @@ for i in range(2):
p.down()
p.circle(50)
x=x+100
p.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