Commit fbc717cf by BellCodeEditor

save project

parent b810c294
Showing with 43 additions and 0 deletions
username = "sb"
userpassword = "SB"
while True:
name = input("请输入用户名:")
password = input("请输入密码:")
if name == username and password == userpassword:
print("登录成功!")
break
if name!=username:
print("不要瞎打用户名")
print(str(i)+次机会)
continue
if password!=userpassword:
print("盗号要认真")
print(str(i)+次机会)
import turtle
screen=turtle.Screen()
screen.bgcolor("light pink")
len=screen.textinput("提示","你想要多大的爱心:")
lovesize=int(len)
pen=turtle.Pen()
pen.hideturtle()
pen.color("black")
pen.penup()
pen.goto(100,-300)
pen.down()
pen.write("SBSBSBSBSBSBSBSBSSBBS",font=("黑体",28,"normal"))
pen1=turtle.Pen()
pen1.color("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.pensize(30)
pen1.up()
pen1.goto(-200,-100)
pen1.down()
pen1.lt(45)
pen1.fd(lovesize*2)
pen1.circle(lovesize,180)
pen1.rt(90)
pen1.circle(lovesize,180)
pen1.fd(lovesize*2)
pen1.end_fill()
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