Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson12-4
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
6fb86b34
authored
Sep 20, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
cef09b8f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
diy.py
sb.py
sth.py
tt.py
diy.py
deleted
100644 → 0
View file @
cef09b8f
sb.py
0 → 100644
View file @
6fb86b34
r
=
float
(
input
(
"请输入半径: "
))
pi
=
3.1415
print
(
"周长是:"
,
round
(
pi
*
2
*
r
,
2
),
"面积是:"
,
round
(
pi
*
r
*
r
,
2
),
"直径是:"
,
round
(
2
*
r
,
2
))
\ No newline at end of file
sth.py
0 → 100644
View file @
6fb86b34
r
=
float
(
input
(
"输入半径:"
))
pi
=
3.1415
print
(
"圆的周长:
%.2
f"
%
(
2
*
pi
*
r
),
"圆的面积:
%.2
f"
%
(
r
*
r
*
pi
),
"圆的直径:
%.2
f"
%
(
2
*
r
))
\ No newline at end of file
tt.py
deleted
100644 → 0
View file @
cef09b8f
with
open
(
r'C:\Users\Administrator\Desktop\tt.txt'
,
'r'
,
encoding
=
'utf-8'
)
as
a
:
for
i
in
a
:
print
(
i
)
\ No newline at end of file
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