Commit 88018778 by BellCodeEditor

save project

parent 3e28663c
Showing with 14 additions and 20 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
import turtle import turtle
screen=turtle.Screen() pen=turtle.Pen()
screen.bgcolor("light green") turtle.down()
len=screen.textinput("標題","請輸入大小") pen.write("你被绿了!",font=("Times",12,"normal"))
len=int(len)
p=turtle.Pen() pen1=turtle.Pen()
pen1.pencolor("green")
p.write("你好啊?給你個大嘴巴子",font=("Times",50,"normal")) pen1.left(45)
p.pencolor("red") pen1.forward(100)
pen1.circle(50,180)
p.penup() pen1.right(90)
p.goto(-100,0) pen1.circle(50,180)
p.pendown() pen1.forward(100)
p.lt(45) turtle.done()
pen.hideturtle()
p.fd(len*2)
p.circle(len,180)
p.rt(90)
p.circle(len,180)
p.fd(len*2)
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