Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-5-1_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
9dd92e42
authored
Jun 17, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
de104abc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
19 deletions
26.py
diy.py
diy1.py
第一.py
26.py
0 → 100644
View file @
9dd92e42
# a=float(input('请输入华氏度'))
# c=(a-32)/1.8 华氏度变摄氏度
# print('%s%f %s%f' % ('华氏度',a,'摄氏度',c))
r
=
int
(
input
(
'请输入圆的半径'
))
c
=
2
*
3.14
*
r
s
=
3.14
*
r
*
r
print
(
'半径为
%
d的圆的周长为
%.2
f'
%
(
r
,
c
))
print
(
'半径为
%
d的圆的面积为
%.2
f'
%
(
r
,
s
))
\ No newline at end of file
diy.py
deleted
100644 → 0
View file @
de104abc
diy1.py
View file @
9dd92e42
import
turtle
#
import turtle
a
=
turtle
.
Pen
()
#
a=turtle.Pen()
a
.
penup
()
#
a.penup()
a
.
goto
(
-
100
,
0
)
#
a.goto(-100,0)
a
.
write
(
'听我说谢谢你'
,
font
=
(
'Tine'
,
30
,
'normal'
))
#
a.write('听我说谢谢你',font=('Tine',30,'normal'))
len
=
50
#
len=50
a1
=
turtle
.
Pen
()
#
a1=turtle.Pen()
a1
.
pencolor
(
'red'
)
#
a1.pencolor('red')
a1
.
left
(
45
)
#
a1.left(45)
a1
.
forward
(
2
*
len
)
#
a1.forward(2*len)
a1
.
circle
(
len
,
180
)
#
a1.circle(len,180)
a1
.
right
(
90
)
#
a1.right(90)
a1
.
circle
(
len
,
180
)
#
a1.circle(len,180)
a1
.
forward
(
2
*
len
)
#
a1.forward(2*len)
s
=
turtle
.
Screen
()
#
s=turtle.Screen()
s
.
bgcolor
(
'yellow'
)
#
s.bgcolor('yellow')
a
.
hideturtle
()
#
a.hideturtle()
turtle
.
done
()
#
turtle.done()
第一.py
deleted
100644 → 0
View file @
de104abc
-- "a/\347\254\254\344\270\200.py"
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