Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-2_DIY1
This project
Loading...
Sign in
Toggle navigation
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
8774d2a9
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3fb99b0f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
210 additions
and
2 deletions
1.py
diy1.py
p11 迟.py
1.py
0 → 100644
View file @
8774d2a9
t
=
int
(
turtle
.
textinput
(
'边数'
,
''
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
diy1.py
View file @
8774d2a9
# 玩家出拳
\ No newline at end of file
'''
import turtle
turtle.pendown()
turtle.fillcolor("blue")
turtle.penup()
turtle.goto(0,0)
turtle.pendown()
turtle.begin_fill()
for i in range(3):
turtle.forward(300)
turtle.left(120)
turtle.end_fill()
turtle.fillcolor("yellow")
turtle.penup()
turtle.goto(50,25)
turtle.pendown()
turtle.begin_fill()
for i in range(3):
turtle.forward(200)
turtle.left(120)
turtle.end_fill()
turtle.penup()
turtle.goto(100,50)
turtle.pendown()
turtle.fillcolor("red")
turtle.begin_fill()
for i in range(3):
turtle.forward(100)
turtle.left(120)
turtle.end_fill()
turtle.done()
'''
'''
import turtle
turtle.pendown()
turtle.goto(0,0)
for i in range(12):
turtle.forward(50)
turtle.left(30)
turtle.penup()
turtle.goto(10,50)
turtle.pendown()
turtle.setheading(0)
turtle.pensize(6)
turtle.pencolor("red")
turtle.begin_fill()
turtle.fillcolor("blue")
for i in range(5):
turtle.forward(40)
turtle.left(72)
turtle.end_fill()
turtle.done()
'''
'''
import turtle
turtle.begin_fill()
turtle.fillcolor("purple")
turtle.pencolor()
turtle.setheading(90)
turtle.circle(80,180)
turtle.setheading(90)
turtle.circle(80,180)
turtle.left(45)
turtle.forward(225)
turtle.left(90)
turtle.forward(225)
turtle.end_fill()
turtle.done()
'''
'''
a=3.1415926535
R=6
S=a*R**2
H=0.5
V=S*H
print(V*3/9)
'''
'''
print(38/1*100)
'''
'''
a=60
b=a*1.2
print(a+b)
'''
'''
a=32
b=32/4*3
print(b/0.8+a)
'''
'''
a=500
b=a*2*0.0234
c=a*1*0.0225+a
d=c*1*0.0225
print(b,d)
'''
'''
a=35*4-94
b=4-2
c=a/b
d=35-c
print(c,d)
'''
'''
import turtle
turtle.begin_fill()
turtle.fillcolor("yellow")
turtle.circle(80,360)
turtle.end_fill()
turtle.penup()
turtle.goto(-25,100)
turtle.pendown()
turtle.circle(10,360)
turtle.penup()
turtle.goto(25,100)
turtle.pendown()
turtle.circle(10,360)
turtle.penup()
turtle.goto(-30,30)
turtle.left(-20)
turtle.pendown()
turtle.circle(80,60)
'''
'''
import turtle
turtle.speed(2)
turtle.begin_fill()
turtle.fillcolor("red")
turtle.circle(80,360)
for i in range(8):
turtle.penup()
turtle.goto(0,80)
turtle.forward(90)
turtle.left(45)
turtle.pendown()
for i in range(3):
turtle.forward(30)
turtle.right(120)
turtle.end_fill()
turtle.done
'''
'''
a=(1-0.25)*0.4
b=0.25+a
c=1-b
print(1/(b-c))
'''
This diff is collapsed.
Click to expand it.
p11 迟.py
0 → 100644
View file @
8774d2a9
'''
'''
a=int(input())
x=int(a//100)
y=int((a-100*x)//10)
z=int(a-100*x-10*y)
print("百:",x,"十:",y,"个:",z)
'''
'''
import turtle
turtle.pendown()
turtle.goto(0,0)
for i in range(4):
turtle.forward(200)
turtle.left(90)
turtle.penup()
turtle.goto(100,50)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("blue")
turtle.circle(50,360)
turtle.end_fill()
turtle.done()
'''
'''
import turtle
turtle.pendown()
turtle.goto(0,0)
for i in range(4):
turtle.forward(200)
turtle.left(90)
turtle.penup()
turtle.goto(50,80)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("red")
turtle.circle(10,360)
turtle.end_fill()
turtle.penup()
turtle.goto(100,80)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("red")
turtle.circle(10,360)
turtle.end_fill()
turtle.penup()
turtle.goto(150,80)
turtle.pendown()
turtle.begin_fill()
turtle.fillcolor("red")
turtle.circle(10,360)
turtle.end_fill()
turtle.done()
'''
'''
a=6#把6赋值给变量a
b=3#把3赋值给变量b
s=a*b#把a*b赋值给变量b
print("长方形的面积为:",s)
'''
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment