Commit c1199193 by BellCodeEditor

save project

parent 8062ac09
Showing with 24 additions and 4 deletions
import turtle
c=turtle.Screen()
c.bgcolor("light blue")
a=turtle.Pen()
a.penup()
a.goto(100,-100)
a.write("你好",font=("Times",20,"normal"))
a.hideturtle()
b=turtle.Pen()
len=c.textinput("提示","你想要多大的尺寸")
lovesize=int(len)
b.pensize(5)
b.pencolor("red")
b.left(45)
b.forward(100)
b.circle(50,180)
b.forward(2*lovesize)
b.circle(lovesize,180)
b.right(90)
b.circle(50,180)
b.forward(100)
b.circle(lovesize,180)
b.forward(2*lovesize)
b.hideturtle()
turtle.done()
\ No newline at end of file
a="123"
b="1234"
while True:
c=input("请输入")
d=input("请输入")
if a == c and b == d:
print("成功")
break
if a!=c:
print("账号错误")
if b!=d:
print("密码错误")
print("登录失败")
\ 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