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

bellcode / lesson3-1-1_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-1-1_DIY1
  • diy1.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    auto save · af20d806
    BellCodeEditor committed a year ago
    af20d806
diy1.py 549 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
import turtle  
Pen=turtle.Pen()
Pen.write("Hi,诺依\n用python真好用\n——悟空",font=("Times",30,"normal"))
Pen.hideturtle()
Pen=turtle.Pen()   
screen=turtle.Screen()  
len=screen.textinput("提示","你想要多大的爱心")  
abc=int(len)
Pen1=turtle.Pen()
Pen1.penup() 
Pen1.goto(-100,100)
Pen1.pendown()
Pen1.left(45)  
Pen1.forward(abc)   
Pen1.circle(abc/2,180)   
Pen1.right(90) 
Pen1.circle(abc/2,180)  
Pen1.forward(abc)   
Pen1.pensize(10)   
screen=turtle.Screen()
screen.bgcolor("red")  
turtle.done()