Commit 62679994 by BellCodeEditor

auto save

parent 816045ce
Showing with 22 additions and 9 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
# pen=turtle.Pen()
# pen.write("motherfuker die!\n go fuckyourself",font=("times",40,"normal"))
# pen.hideturtle()
# turtle.done()
screen=turtle.Screen()
bg=screen.textinput("背景颜色","你想要什么背景颜色")
screen.bgcolor(bg)
pen=turtle.Pen()
pen.penup()
pen.goto(-150,-150)
pen.write("motherfuker die!\n go fuckyourself",font=("times",40,"normal"))
pen.hideturtle()
j=screen.textinput("爱心大小","画多大爱心")
len=int(j)
i=screen.textinput("颜色","你想要什么颜色的爱心")
pen1=turtle.Pen()
pen1.pensize(8)
pen1.pencolor("violet")
pen1.pencolor(i)
pen1.left(45)
pen1.forward(100)
pen1.circle(50,180)
pen1.forward(2*len)
pen1.circle(len,180)
pen1.right(90)
pen1.circle(50,180)
pen1.forward(100)
pen1.circle(len,180)
pen1.forward(2*len)
pen1.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是")
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