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
    save project · eeaf2601
    BellCodeEditor committed 3 years ago
    eeaf2601
diy1.py 354 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import turtle
a=turtle.Screen()
a.bgcolor("green")
b=a.textinput("你的姓名","你想要多大的")
b=int(b)
t=turtle.Pen()
t.write("你\n好",font=("Times",13,"normal"))
w=turtle.Pen()

w.right(45)
w.forward(2*b)
w.circle(b,180)
w.left(90)
w.circle(b,180)
w.forward(2*b)


w.pensize(10)
w.pencolor(red)
t.hideturtle()
turtle.done()