Commit ceed1568 by BellCodeEditor

auto save

parent df5219ba
Showing with 1 additions and 26 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
import random
abc=turtle.textinput("框框","你想要多大的心心呢?")
len=int(abc)
screen=turtle.bgcolor("pink")
pen=turtle.Pen() pen=turtle.Pen()
pen.penup() pen.write("纯棉不觉晓\n处处闻啼鸟",font=("Times",30,"normal"))
pen.goto(100,-100)
pen.write("春眠不觉晓\n处处闻啼鸟\n夜来风雨声\n花落知多少",font=("Times",30,"normal"))
pen.penup()
pen.goto(20,-100)
pen.hideturtle() pen.hideturtle()
turtle.done turtle.done
pen1=turtle.Pen()
pen1.penup()
pen1.pendown()
pen1.pensize(5)
pen1.pencolor("red")
pen1.fillcolor("blue")
pen1.begin_fill()
pen1.right(225)
pen1.forward(2*len)
pen1.circle(-len,180)
pen1.right(-90)
pen1.circle(-len,180)
pen1.forward(2*len)
pen1.end_fill()
pen1.hideturtle()
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