Commit 5a1d12c0 by BellCodeEditor

save project

parent 8201a236
Showing with 2 additions and 15 deletions
# 上节课你是这样绘制的五角星👇: player=input("请出拳:石头/剪刀/布:")
# 这节课你可以利用新学的知识自定义五角星的颜色么? print("玩家出拳:"+player)
import turtle
pen=turtle.Pen()
ink =input("请输入颜色: ")
pen.fillcolor(ink)
pen.begin_fill()
for i in range(5):
pen.forward(200)
pen.right(144)
pen.end_fill()
pen.hindturele()
turtle.done()
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