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
Commit 9f39b3ad authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

save project

parent bdddb4cc
Show whitespace changes
Inline Side-by-side
Showing with 9 additions and 6 deletions
  • 123.py
123.py
View file @ 9f39b3ad
...@@ -3,18 +3,20 @@ scr=turtle.Screen() ...@@ -3,18 +3,20 @@ scr=turtle.Screen()
scr.bgcolor("pink") scr.bgcolor("pink")
p=turtle.Pen() p=turtle.Pen()
p.penup() p.penup()
p.goto(100,-100) p.goto(0,-150)
p.write("你是个SB\nSB\n就是你!",font=("Times",20,"normal")) p.write("你是个SB\nSB就是你!",font=("Times",50,"normal"))
p.hideturtle() p.hideturtle()
#画爱心 #画爱心
a=scr.textinput("提示","你想要多大的爱心:")
len=int(a)
p1=turtle.Pen() p1=turtle.Pen()
p1.pensize(5) p1.pensize(5)
p1.pencolor("red") p1.pencolor("red")
p1.left(45) p1.left(45)
p1.forward(100) p1.forward(len*2)
p1.circle(50,180) p1.circle(len,180)
p1.right(90) p1.right(90)
p1.circle(50,180) p1.circle(len,180)
p1.forward(100) p1.forward(len*2)
p1.hideturtle() p1.hideturtle()
turtle.done() turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
  • Write
  • Preview
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment