Commit 197fe03b by BellCodeEditor

auto save

parent 10af1cba
Showing with 22 additions and 3 deletions
i = 5 # 行 import turtle
j = 3 # 列 pen=turtle.Pen()
# 使用变量i和j,代替乘法算式里面的元素,打印出单个乘法算式 pen1=turtle.Pen()
s=turtle.Screen()
s.bgcolor("light blue")
pen1.write("你好",font=("Times",20,"normal"))
pen.penup()
pen.goto(100,-100)
pen.pensize(5)
len=s.textinput("提示","爱心的大小")
color=s.textinput("提示","爱心的颜色")
len=int(len)
pen.pencolor(color)
pen.pendown()
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
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