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

Administrator / lesson11_5

  • 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
  • lesson11_5
  • func.py
Find file
BlameHistoryPermalink
  • BellCodeEditor's avatar
    save project · b666c6a3
    BellCodeEditor committed 3 years ago
    b666c6a3
func.py 538 Bytes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
import turtle
screen=tuple.Screen()
screen.bgclor("light blue") 
pen=turtle.pen()
pen.penup()
pen.goto(100,-100)
pen.write(“嗨,诺依~\n用python写电子贺卡真是太有趣了~\n我也喜欢python~\n悟空",font=(times",20,"nomal"))
pen.hidetutle()
pan1.tutle.pen()
pan.pancolor("red")
pan1.pensize(5)
lovesize=screen.textinput("提示","你想要多大的爱心呀?")
len=int(lovesize)
pan1.left(45)
pani.forward(2*len)
pan1.circle(100,180)
pen1.right(90)
pan1.circle(100,180)
pan1.forward(2*len)
pan1.hidetutle()
turtle.done()