Commit b510698d by BellCodeEditor

save project

parent a45af7d7
Showing with 31 additions and 9 deletions
name=input("请输入你的名字") a=['华雄']
print(name+",你是最棒的!") a.insert(1,'颜良')
\ No newline at end of file
#a.append('颜良')
#b=['颜良','文丑']
#a.extend(b)
print(a)
\ No newline at end of file
...@@ -3,9 +3,10 @@ import turtle ...@@ -3,9 +3,10 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.fillcolor("blue") pen.fillcolor("blue")
pen.begin_fill() pen.begin_fill()
for i in range(70): pen.speed(0)
for i in range(100):
pen.forward(300) pen.forward(300)
pen.right(180-180/70) pen.right(180-180/100)
pen.hideturtle() pen.hideturtle()
pen.end_fill() pen.end_fill()
turtle .done() turtle .done()
\ No newline at end of file
...@@ -3,9 +3,9 @@ pen=turtle.Pen() ...@@ -3,9 +3,9 @@ pen=turtle.Pen()
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.speed(0) pen.speed(0)
for i in range(1900): for i in range(500):
pen.forward(900) pen.forward(900)
pen.right(180-180/1900) pen.left(-180-180/500)
pen.hideturtle() pen.hideturtle()
pen.end_fill() pen.end_fill()
turtle .done() turtle .done()
\ No newline at end of file
for i in range(10): for i in range(10):
print("悟空")8 print("悟空")
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.penup()
pen.goto(0,-200)
pen.pendown()
pen.circle(200)
pen.penup()
pen.goto(-100,50)
turtle.down()
\ No newline at end of file
...@@ -8,3 +8,5 @@ for i in range(6): ...@@ -8,3 +8,5 @@ for i in range(6):
pen.hideturtle() pen.hideturtle()
pen.end_fill() pen.end_fill()
turtle .done() turtle .done()
turtle .done()
turtle .done()
\ No newline at end of file
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