diff --git a/diy1.py b/diy1.py index 4b260de..f0b6647 100644 --- a/diy1.py +++ b/diy1.py @@ -1,22 +1,95 @@ # 利用write()帮助悟空给诺依回信吧~ -import turtle -screen=turtle.Screen() -screen.bgcolor("light blue") -len=screen.textinput("提示","你想要多大的爱心呀?") -len=int(len) -pen=turtle.Pen() -pen.write("你好/nfuck.",font=("Times",30,"normal")) -pen.hideturtle() -len=60 -pen.penup() -pen.goto(100,100) -pen.pendown() -pen.pensize(5) -pen.pencolor("red") -pen.left(45) -pen.forward(2*len) -pen.circle(len,180) -pen.right(90) -pen.circle(len,180) -pen.forward(2*len) -turtle.done() \ No newline at end of file +# import turtle +# screen=turtle.Screen() +# screen.bgcolor("light blue") +# len=screen.textinput("提示","你想要多大的爱心呀?") +# len=int(len) +# pen=turtle.Pen() +# pen.write("你好/nfuck.",font=("Times",30,"normal")) +# pen.hideturtle() +# len=60 +# pen.penup() +# pen.goto(100,100) +# pen.pendown() +# pen.pensize(5) +# pen.pencolor("red") +# pen.left(45) +# pen.forward(2*len) +# pen.circle(len,180) +# pen.right(90) +# pen.circle(len,180) +# pen.forward(2*len) + + + + + + + + + + +import turtlea +hlfl=turtle.Pen() +hlfl.pencolor("black") +hlfl.pensize(2) +hlfl.write("噫吁嚱,危乎高哉!\n蜀道之难,难于上青天!\n蚕丛及鱼凫,开国何茫然!\n",font=("宋体",18,"normal")) +hlfl.pencolor("red") +hlfl.penup() +hlfl.goto(-110,50) + +# hlfl.write("问君西游何时还?畏途巉岩不可攀。但见悲鸟号古木,雄飞雌从绕林间。又闻子规啼夜月,愁空山。蜀道之难,难于上青天,使人听此凋朱颜!连峰去天不盈尺,枯松倒挂倚绝壁。飞湍瀑流争喧豗,砯崖转石万壑雷。其险也如此,嗟尔远道之人胡为乎来哉!") +hlfl.left(45) +hlfl.pendown() +hlfl.forward(100) +# 剑阁峥嵘而崔嵬,一夫当关,万夫莫开。所守或匪亲,化为狼与豺。朝避猛虎,夕避长蛇;磨牙吮血,杀人如麻。锦城虽云乐,不如早还家。蜀道之难,难于上青天,侧身西望长咨嗟!") +hlfl.circle(50,180) +hlfl.right(90) + +hlfl.circle(50,180) +hlfl.forward(100) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +turtle.done()