Commit f449231f by BellCodeEditor

save project

parent 07858a54
Showing with 26 additions and 0 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
import random
len=random.randint(0,0)
cpen=len
pen=turtle.Pen()
screen=turtle.Screen()
screen.bgcolor("green")
lovesize=screen.textinput("填数字","你想要多大的爱心?")
len=int(lovesize)
pen.penup()
pen.goto(100,-100)
pen.write("庄颜:“我觉得它像。晚霞的眼睛”\n罗辑:“你怎么不说是朝霞的眼睛”\n庄颜:“我更喜欢晚霞”\n罗辑:“为什么”\n庄颜:“晚霞消失后可以看到星星,朝霞消失以后,就只剩下····”\n罗辑:“只剩下光天化日下的现实了”\n庄颜:“是,是啊。”",font=("Times",10,"normal"))
pen1=turtle.Pen()
pen1.pensize(5)
pen1.pencolor("red")
pen1.right(-45)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
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