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

bellcode / lesson3-4-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 81dd878e authored 9 months ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent e57553b3
Hide whitespace changes
Inline Side-by-side
Showing with 27 additions and 0 deletions
  • m.py
m.py 0 → 100644
View file @ 81dd878e
import turtle
screen=turtle.Screen()
screen.bgcolor("light blue")
love=screen.textinput("提示","你想要粉色爱心吗,输入一个数字")
i=int(love)
pen=turtle.Pen()
pen.penup()
pen.goto(-100,100)
pen.pendown()
pen.pencolor("pink")
pen.fillcolor("pink")
pen.begin_fill()
pen.left(135)
pen.circle(i,180)
pen.forward(2*i)
pen.left(90)
pen.forward(2*i)
pen.circle(i,180)
pen.end_fill()
pen.penup()
pen.goto(0,0)
pen.write("爱心",font=("方正楷体",30,"normal"))
pen.hideturtle()
turtle.done()
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