Commit c57f4fb3 by BellCodeEditor

save project

parent 3ee0ddd0
Showing with 7 additions and 9 deletions
"""
请使用turtle模块画出五角星
"""
import turtle import turtle
__Pen = turtle.Pen() __Pen = turtle.Pen()
__Pen.fillcolor("#ff0000")
Pen.begin_fill()
for __count in range(36): __Pen.pensize(turtle.numinput('对话框', '请输入画笔大小', 1, 1))
__Pen.forward(200) __Pen.speed(turtle.numinput('对话框', '请输入画笔速度', 5, 1))
daxiao = turtle.numinput('对话框', '请输入五角星大小', 30, 10)
for __count in range(5):
__Pen.forward(daxiao)
__Pen.right(144) __Pen.right(144)
tuple.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