Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

bellcode / lesson2-1-2_DIY1

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Members
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • lesson2-1-2_DIY1
  • star.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · d6d2d9f9
    BellCodeEditor committed 4 years ago
    d6d2d9f9
star.py 515 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
# # 上节课你是这样绘制的五角星👇:
# # 这节课你可以利用新学的知识自定义五角星的颜色么?
# 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()

#玩家出拳

#计算机出拳

#结果比较