From 6af37e273f75f936c49fdf73ea8162ff9d660fda Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sat, 13 Aug 2022 19:58:39 +0800 Subject: [PATCH] auto save --- star.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/star.py b/star.py index d381d74..0c16aa6 100644 --- a/star.py +++ b/star.py @@ -1,3 +1,11 @@ -""" -请使用turtle模块画出五角星 -""" + +# 请使用turtle模块画出五角星 +import turtle + +pen=turtle.Pen() +for i in range(5): + pen.forward(200) + pen.right(144) +pen.hideturtle() +turtle.done() + -- libgit2 0.25.0