Commit e29bff5a by BellCodeEditor

save project

parent c816b9b8
Showing with 64 additions and 0 deletions
import turtle
t=turtle.Pen()
sc=turtle.Screen()
t.pencolor("blue")
t.pensize(6)
for i in range(3):
t.left(120)
t.forward(120)
t.up()
t.goto(-120,70)
t.down()
for i in range(3):
t.forward(120)
t.right(120)
turtle.done()
\ No newline at end of file
import turtle
t=turtle.Pen()
sc=turtle.Screen()
l=sc.textinput("输入","输入爱心大小?")
l=int(l)
t.pencolor("red")
t.pensize(6)
t.left(45)
t.forward(l*2)
t.circle(l,180)
t.right(90)
t.circle(l,180)
t.forward(l*2)
t.penup()
t.goto(200,-200)
t.write("你好 \n6\n6\n",font=("仿宋",30,"normal"))
l=sc.textinput("输入","输入爱心大小?")
turtle.done()
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
'''import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
len=screen.textinput("100","100")
len=int(len)
pen=turtle.Pen()
pen.write("你好.",font=("Times",30,"normal"))
pen.hideturtle()
len=60
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(2*len)
turtle.done()'''
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