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

bellcode / lesson12-2

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

auto save

parent 59f687ca
Hide whitespace changes
Inline Side-by-side
Showing with 34 additions and 0 deletions
  • diy.py
  • diy1.py
diy.py 0 → 100644
View file @ 711d677a
'''
计算长方形的面积
并输出结果
'''
a=6 #长为6
b=3 #宽为3
s=a*b #计算长方形的面积
print("长方形的面积为:",s) #输出长方形的面积
\ No newline at end of file
This diff is collapsed. Click to expand it.
diy1.py 0 → 100644
View file @ 711d677a
import turtle
p=turtle.Pen()
p.penup()
p.goto(0,-200)
p.pendown()
p.circle(200)
p.penup()
p.goto(-100,50)
p.pendown()
p.dot(40,"blue")
p.penup()
p.goto(-100+200,50)
p.pendown()
p.dot(40,"blue")
p.penup()
p.goto(0,50)
p.pendown()
p.circle(-50,steps=3)
p.penup()
p.goto(-150,-70)
p.pendown()
p.goto(0,-170)
p.goto(-150+300,-70)
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