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

save project

parent c2f1308f
Hide whitespace changes
Inline Side-by-side
Showing with 34 additions and 2 deletions
  • 7.py
  • diy1.py
7.py 0 → 100644
View file @ c1e30fc8
import turtle
screen=turtle.Screen()
name=screen.textinput("姓名框","你的名字是:")
pen=turtle.Pen()
pen.color("black")
pen.write(name+"欢迎你!",font=("Times","50","normal"))
turtle.done()
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy1.py
View file @ c1e30fc8
# 利用write()帮助悟空给诺依回信吧~
\ No newline at end of file
# 利用write()帮助悟空给诺依回信吧~
import turtle
#写字
screen=turtle.Screen()
num=screen.textinput("提示","你想要多大的爱心:")
lovesize=int(num)
screen.bgcolor("black")
pencil=turtle.Pen()
pencil.pensize(5)
pencil.color("red")
pencil.setheading(45)
pencil.forward(2*lovesize)
pencil.circle(lovesize,180)
pencil.right(90)
pencil.circle(lovesize,180)
pencil.forward(2*lovesize)
pencil.hideturtle()
pen=turtle.Pen()
pen.color("yellow")
pen.up()
pen.goto(110,-110)
name=screen.textinput("名字","你的名字是:")
pen.write(name+"端午节\n快乐!",font=("Times","40","normal"))
pen.hideturtle()
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