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 · 7901a2ea
    BellCodeEditor committed 2 years ago
    7901a2ea
diy1.py 432 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
s = turtle.Screen()
s.bgcolor("plum")
p = turtle.Pen()
p.penup()
p.goto(0,-100)
p.write("你好,\n很高兴见到你!",font=("Times",30,"normal"))
p.hideturtle()

#画图
p1 = turtle.Pen()
p1.pencolor("red")
p1.pensize(5)
l=s.textinput("提示""你")
len=int(l)
p1.left(135)
p1.forward(2*len)
p1.circle(-len,180)
p1.left(90)
p1.circle(-len,180)
p1.forward(2*len)
p1.hideturtle()
turtle.done()