Commit a45af7d7 by BellCodeEditor

save project

parent 38edd6d3
Showing with 24 additions and 7 deletions
name=input("请输入你的名字")
print(name+",你是最棒的!")
\ No newline at end of file
...@@ -3,9 +3,9 @@ import turtle ...@@ -3,9 +3,9 @@ import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.fillcolor("blue") pen.fillcolor("blue")
pen.begin_fill() pen.begin_fill()
for i in range(3): for i in range(70):
pen.forward(300) pen.forward(300)
pen.right(120) pen.right(180-180/70)
pen.hideturtle() pen.hideturtle()
pen.end_fill() pen.end_fill()
turtle .done() turtle .done()
\ No newline at end of file
import turtle
pen=turtle.Pen()
pen.fillcolor("red")
pen.begin_fill()
pen.speed(0)
for i in range(1900):
pen.forward(900)
pen.right(180-180/1900)
pen.hideturtle()
pen.end_fill()
turtle .done()
\ No newline at end of file
for i in range(10):
print("悟空")8
\ No newline at end of file
"""
请使用turtle模块画出五角星
"""
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
pen.fillcolor("red") pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
for i in range(36): for i in range(6):
pen.forward(200) pen.forward(200)
pen.right(180-180/36) pen.right(360/6)
pen.hideturtle() pen.hideturtle()
pen.end_fill() pen.end_fill()
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