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

auto save

parent 2f550581
Hide whitespace changes
Inline Side-by-side
Showing with 27 additions and 21 deletions
  • diy1.py
diy1.py
View file @ 9d66b2df
# 利用write()帮助悟空给诺依回信吧~
#a=int(input("请输入任意地三位整数:"))
#x=a%10
#b=a//10%10
#c=a//100%10
import turtle
screen=turtle.Screen()
len=screen.textinput("提示","你的爱心要多大")
len=int(len)
screen.bgcolor("blue")
pen=turtle.Pen()
pen.write("你好\n王禹然.",font=("Times",30,"normal"))
pen.hideturtle()
pen.penup()
pen.goto(100,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(len*2)
pen.circle(len,180)
pen.right(90)
pen.circle(len,180)
pen.forward(len*2)
turtle.done()
turtle.pencolor("red")
turtle.pensize(5)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.forward(200)
turtle.right(144)
turtle.hideturtle()
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