Commit 51ca456d by BellCodeEditor

save project

parent e0ee11b5
Showing with 10 additions and 5 deletions
...@@ -29,8 +29,12 @@ ...@@ -29,8 +29,12 @@
import turtlea import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
hlfl=turtle.Pen() hlfl=turtle.Pen()
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
hlfl.pencolor("black") hlfl.pencolor("black")
hlfl.pensize(2) hlfl.pensize(2)
hlfl.write("噫吁嚱,危乎高哉!\n蜀道之难,难于上青天!\n蚕丛及鱼凫,开国何茫然!\n",font=("宋体",18,"normal")) hlfl.write("噫吁嚱,危乎高哉!\n蜀道之难,难于上青天!\n蚕丛及鱼凫,开国何茫然!\n",font=("宋体",18,"normal"))
...@@ -40,14 +44,15 @@ hlfl.goto(-110,50) ...@@ -40,14 +44,15 @@ hlfl.goto(-110,50)
# hlfl.write("问君西游何时还?畏途巉岩不可攀。但见悲鸟号古木,雄飞雌从绕林间。又闻子规啼夜月,愁空山。蜀道之难,难于上青天,使人听此凋朱颜!连峰去天不盈尺,枯松倒挂倚绝壁。飞湍瀑流争喧豗,砯崖转石万壑雷。其险也如此,嗟尔远道之人胡为乎来哉!") # hlfl.write("问君西游何时还?畏途巉岩不可攀。但见悲鸟号古木,雄飞雌从绕林间。又闻子规啼夜月,愁空山。蜀道之难,难于上青天,使人听此凋朱颜!连峰去天不盈尺,枯松倒挂倚绝壁。飞湍瀑流争喧豗,砯崖转石万壑雷。其险也如此,嗟尔远道之人胡为乎来哉!")
hlfl.left(45) hlfl.left(45)
hlfl.pendown() hlfl.pendown()
hlfl.forward(100) hlfl.forward(2*lovesize)
# 剑阁峥嵘而崔嵬,一夫当关,万夫莫开。所守或匪亲,化为狼与豺。朝避猛虎,夕避长蛇;磨牙吮血,杀人如麻。锦城虽云乐,不如早还家。蜀道之难,难于上青天,侧身西望长咨嗟!") # 剑阁峥嵘而崔嵬,一夫当关,万夫莫开。所守或匪亲,化为狼与豺。朝避猛虎,夕避长蛇;磨牙吮血,杀人如麻。锦城虽云乐,不如早还家。蜀道之难,难于上青天,侧身西望长咨嗟!")
hlfl.circle(50,180) hlfl.circle(lovesize,180)
hlfl.right(90) hlfl.right(90)
hlfl.circle(50,180) hlfl.circle(lovesize,180)
hlfl.forward(100) hlfl.forward(2*lovesize)
......
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