diff --git a/diy1.py b/diy1.py index a2aa366..673762b 100644 --- a/diy1.py +++ b/diy1.py @@ -1,4 +1,28 @@ # 利用write()帮助悟空给诺依回信吧~ import turtle -Pen=Pen.write("你好啊,傻逼,你他媽得是個腦殘",font("Times",50,"normal") -hideturtie() \ No newline at end of file +screen=turtle.Screen() +screen.bgcolor("light green") +len=screen.textinput("標題","請輸入大小") +len=int(len) +p=turtle.Pen() + +p.write("你好啊?給你個大嘴巴子",font=("Times",50,"normal")) +p.pencolor("red") + +p.penup() +p.goto(-100,0) +p.pendown() +p.lt(45) + +p.fd(len*2) +p.circle(len,180) + +p.rt(90) +p.circle(len,180) +p.fd(len*2) + +turtle.done() + + + +