Commit 26fae196 by BellCodeEditor

auto save

parent 654bc3ba
Showing with 22 additions and 0 deletions
import turtle
pen=turtle.Pen()
screen=turtle.Screen()
color_huabi=screen.textinput('画笔颜色','请输入你想要的颜色:')
pen.pencolor(color_huabi)
size_pen1=screen.textinput('画笔粗细','请输入你想要的尺寸:')
size_pen=int(size_pen1)
pen.pensize(size_pen)
color_beijing=screen.textinput('背景颜色','请输入你想要的颜色:')
screen.bgcolor(color_beijing)
lovesize_=screen.textinput('爱心大小','请输入你想要的尺寸:')
lovesize=int(lovesize_)
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
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