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

bellcode / lesson3-5-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-5-2_DIY1
  • bug.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · a5a570f6
    BellCodeEditor committed 4 years ago
    a5a570f6
bug.py 449 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
a1=turtle.Pen()#用来画桃心
a2=turtle.Pen()#
b=turtle.Screen()
b.bgcolor("light yellow")
c=b.textinput("提示","你想要大多的爱心")
r=int(c)
a1.pencolor("purple")
a2.pencolor("purple")
a1.hideturtle()
a1.penup()
a1.goto(0,90)
a1.pendown()
a1.left(45)
a1.forward(2*r)
a1.circle(r,180)
a1.right(90)
a1.circle(r,180)
a1.forward(2*r)
a2.penup()
a2.goto(-120,0)
a2.write("恭贺新禧",font=("times",50,"normal"))
turtle.done()