Commit abbc6054 by BellCodeEditor

auto save

parent c2f1308f
Showing with 37 additions and 2 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file # 导入模块
import turtle
A = turtle.Screen()
A.bgcolor("pink")
# 创建画笔1
huabi = turtle.Pen()
huabi.penup()
huabi.goto(100,0)
huabi.write("猪八戒,\n你是\n猪妖!",font=("Times",30,"normal"))
huabi.hideturtle()
pen2 = turtle.Pen()
pen2.pensize(15)
pen2.pencolor("blue")
pen2.speed(100)
# 画爱心
len = int(turtle.textinput("爱心框","输入爱心的大小"))
pen2.left(45)
pen2.forward(2*len)
pen2.circle(len,180)
pen2.right(90)
pen2.circle(len,180)
pen2.forward(2*len)
pen2.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