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

bellcode / lesson3-5-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 237688ad authored 2 years ago by BellCodeEditor's avatar BellCodeEditor
Browse files
Options
  • Browse Files
  • Download
  • Email Patches
  • Plain Diff

auto save

parent 1b9992fb
Show whitespace changes
Inline Side-by-side
Showing with 8 additions and 2 deletions
  • f.py
f.py
View file @ 237688ad
import turtle import turtle
pen=turtle.Pen() pen=turtle.Pen()
screen=turtle.Screen() screen=turtle.Screen()
screen.bgcolor("right blue") screen.bgcolor("light blue")
pen.penup() pen.penup()
pen.goto(100,-100) pen.goto(100,-100)
pen.write("come的喂\nABC",font=("Times",20,"normal")) pen.write("你爱\n我么?",font=("Times",20,"normal"))
pen.goto(0,0) pen.goto(0,0)
pen.pendown() pen.pendown()
lg=50 lg=50
len=int(lg) len=int(lg)
pen.fillcolor("red")
pen.begin_fill() pen.begin_fill()
pen.pencolor("red") pen.pencolor("red")
pen.hideturtle() pen.hideturtle()
...@@ -19,4 +20,8 @@ pen.right(90) ...@@ -19,4 +20,8 @@ pen.right(90)
pen.circle(len,180) pen.circle(len,180)
pen.forward(2*len) pen.forward(2*len)
pen.end_fill() pen.end_fill()
while lg == "爱":
lg=screen.textinput("提示","你爱\n我么?")
if not lg == "不":
print("谢谢!")
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