From 004e87a45f4c540d7e24a68d16cbbd03a0457fdd Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Fri, 16 Dec 2022 19:56:49 +0800 Subject: [PATCH] save project --- star.py | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/star.py b/star.py index 8cd3639..93210a8 100644 --- a/star.py +++ b/star.py @@ -1,12 +1,2 @@ -# 上节课你是这样绘制的五角星👇: -# 这节课你可以利用新学的知识自定义五角星的颜色么? -import turtle -ink = input("什么色?")#绘制五角星# -pen = turtle.Pen() -pen.fillcolor(ink) -pen.begin_fill() -for i in range(5): #重复执行5次 - pen.forward(200) #向前移动200步 - pen.right(144) #向右移动144度,注意这里的参数一定不能变 -pen.end_fill() #结束填充红色 -turtle.done() +player=input("请出拳:") +print("请玩家出拳:"+player) \ No newline at end of file -- libgit2 0.25.0