Commit e2ed1f23 by BellCodeEditor

auto save

parent 37c69b47
Showing with 21 additions and 6 deletions
import turtle import turtle
#写字
"""画出五角星"""
pen=turtle.Pen() pen=turtle.Pen()
for i in range(5): pen.penup()
pen.forward(200) pen.goto(100,-100)
pen.right(144) pen.pendown()
pen.write("Hi,诺依~\n用python写电子贺卡真是太有趣啦~\n我也喜欢python~\n——悟空 ",font=("Times",18,"normal"))
pen.hideturtle() pen.hideturtle()
screen=turtle.Screen()
screen.bgcolor("white")
len=screen.textinput("提示","多大爱心")
a=int(len)
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(5)
pen1.left(45)
pen1.forward(a*2)
pen1.circle(a,180)
pen1.right(90)
pen1.circle(a,180)
pen1.forward(a*2)
pen1.hideturtle()
turtle.done() 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