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

save project

parent f90c8f1e
Hide whitespace changes
Inline Side-by-side
Showing with 8 additions and 4 deletions
  • diy1.py
diy1.py
View file @ 8a8f2eb9
...@@ -7,16 +7,20 @@ pen.penup() ...@@ -7,16 +7,20 @@ pen.penup()
pen.goto(0,-150) pen.goto(0,-150)
pen.pendown() pen.pendown()
pen.write("Hi,诺依!\n我收到你的贺卡了!\n——悟空",font=("Times",30,"normal")) pen.write("Hi,诺依!\n我收到你的贺卡了!\n——悟空",font=("Times",30,"normal"))
#123
import random
list=[20,30,40,50,55]
len=random.choice(list)
pen.penup() pen.penup()
pen.goto(0,0) pen.goto(0,0)
pen.pendown() pen.pendown()
pen.color("red") pen.color("red")
pen.pensize(5) pen.pensize(5)
pen.left(45) pen.left(45)
pen.forward(100) pen.forward(len*2)
pen.circle(50,180) pen.circle(len,180)
pen.right(90) pen.right(90)
pen.circle(50,180) pen.circle(len,180)
pen.forward(100) pen.forward(len*2)
pen.hideturtle() pen.hideturtle()
turtle.done() 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