Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson13-1
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
0d3e7239
authored
Mar 06, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d9ee44b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
30 deletions
1.py
1.py
View file @
0d3e7239
'''
with
open
(
r'C:\Users\Administrator\Desktop\sales_list.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
file
:
36题
a
=
file
.
readlines
()
r=int(input("请输入圆的半径"))
for
i
in
a
:
print("圆的直径是",2*r)
s
=
i
.
split
()
print("圆的周长是",2*r*3.14)
print
(
s
[
1
:])
print("圆的面积是",r**2*3.14)
'''
import
turtle
as
t
t
.
penup
()
t
.
goto
(
0
,
-
200
)
t
.
pendown
()
t
.
circle
(
200
)
t
.
penup
()
t
.
goto
(
-
100
,
50
)
t
.
pendown
()
t
.
fillcolor
(
"blue"
)
t
.
begin_fill
()
t
.
circle
(
20
)
t
.
end_fill
()
t
.
penup
()
t
.
goto
(
100
,
50
)
t
.
pendown
()
t
.
fillcolor
(
"blue"
)
t
.
begin_fill
()
t
.
circle
(
20
)
t
.
end_fill
()
t
.
penup
()
t
.
goto
(
0
,
50
)
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