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

bellcode / lesson3-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
  • lesson3-2_DIY1
  • i.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · 8f47bb50
    BellCodeEditor committed 2 years ago
    8f47bb50
i.py 439 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
import turtle
import random
m=random.randint(50,200)
p=turtle.Pen()
s=turtle.Screen()
p.pencolor("light yellow")
s.bgcolor("red")
p.write("你干嘛~\n嗨嗨哟!",font=("Times",20,"normal"))
p.penup()
p.goto(100,100)
p.pendown()
p.pensize(5)
p.pencolor("yellow")
p.fillcolor("light yellow")
p.begin_fill()
p.left(45)
p.forward(m)
p.circle(m/2,180)
p.right(90)
p.circle(m/2,180)
p.forward(m)
p.end_fill()
turtle.done()