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

save project

parent b7e2e628
Show whitespace changes
Inline Side-by-side
Showing with 3 additions and 2 deletions
  • diy1.py
diy1.py
View file @ 5e54f5a6
# 利用write()帮助悟空给诺依回信吧~
import turtle
screen=turtle.Screen()
screen.textinput("名字","你叫什么?")
screen.bgcolor("light blue")
pen=turtle.Pen()
pen.penup()
......@@ -11,7 +11,8 @@ pen.write("诺依\n turtle真好用\n 我会打字了",font=("Times",40,"normal"
pen.hideturtle()
pen1=turtle.Pen()
import random
len=random.randint(0,50)
len=int(screen.textinput("提示","你TM想要多大的爱心?"))
pen1.pencolor("red")
pen1.fillcolor("red")
pen1.begin_fill()
......
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