From d8f485d6c0e096445bfd04c1a83752b39d23bfe4 Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 27 Feb 2020 16:01:41 +0800 Subject: [PATCH] auto save --- star.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/star.py b/star.py index d381d74..021aa20 100644 --- a/star.py +++ b/star.py @@ -1,3 +1,14 @@ """ 请使用turtle模块画出五角星 """ +import turtle +p = turtle.Pen() +p.shape("turtle") +p.fillcolor("red") +p.begin_fill() +for i in range(5): + p.forward(200) + p.left(144) +p.end_fill() +p.hideturtle() +turtle.done() \ No newline at end of file -- libgit2 0.25.0