Commit 8ea75886 by BellCodeEditor

save project

parent 50d17946
Showing with 65 additions and 6 deletions
num=int(input("请输入你要玫瑰的数量"))
if num==1:
print("唯一")
elif num==3:
print(("我爱你"))
elif num==10:
print("十全十美")
elif num==99:
print("天长地久")
else:
print("你在狗叫什么?")
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(-100,100)
pen.pendown()
for i in range(4):
pen.forward(200)
pen.right(90)
pen.penup()
pen.goto(0,-50)
pen.pendown()
pen.fillcolor("blue")
pen.begin_fill()
pen.circle(50,360)
pen.end_fill()
turtle.done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(-100,100)
pen.pendown()
for i in range(4):
pen.forward(200)
pen.right(90)
pen.penup()
pen.goto(0,-50)
pen.pendown()
pen.fillcolor("blue")
pen.begin_fill()
turtle.circle(50,360)
pen.end_fill()
turtle.done()
name="wln"
mm="xuebi710068"
unname=input("用户名:")
unmm=input("密码:")
if unname==name and unmm==mm:
print("登录成功")
else:
print("gun")
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
lovesize=screen.textinput("提示","请输入你想画的爱心大小")
a=screen.textinput("提示","请输入你想写下的文字内容")
pen1=turtle.Pen()
cd=int(input("请输入你要画的爱心的长度"))
pen1.pensize(5)
pen1.pencolor("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(2*cd)
pen1.circle(cd,180)
pen1.forward(2*int(lovesize))
pen1.circle(int(lovesize),180)
pen1.right(90)
pen1.circle(cd,180)
pen1.forward(2*cd)
pen1.circle(int(lovesize),180)
pen1.forward(2*int(lovesize))
pen1.end_fill()
pen1.hideturtle()
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("我爱你",font=("Times",30,"normal"))
pen.write(a,font=("Times",30,"normal"))
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