Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson2-1-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
07bc1f5c
authored
Sep 18, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
73b73c26
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
993 additions
and
0 deletions
123.py
半径。py
形式.py
123.py
0 → 100644
View file @
07bc1f5c
#h=input("输入一个华氏度")
#print((int(h)-32)/1.8)
# r=float(input("输入半径:"))
# print("半径r的周长是%.2f,面积是%.2f" % (2*3.14*r,3.14*r*r))
# a=float(input("输入华氏度:"))
# b=(a-32)/1.8
# print("华氏度%f 摄氏度%f" % (a,b) )
r
=
float
(
input
(
"输入圆的半径:"
))
zhochang
=
r
*
2
*
3.14
mianji
=
3.14
*
r
*
r
print
(
"周长=
%.2
f 面积=
%.2
f"
%
(
zhochang
,
mianji
))
\ No newline at end of file
半径。py
0 → 100644
View file @
07bc1f5c
r=input("输入半径:")
r=input("输入半径:")
w=3.14
print("2*w","w r*4")
\ No newline at end of file
形式.py
0 → 100644
View file @
07bc1f5c
a
=
100
# 整数
a
=
100
# 整数
b
=
12.345
# 浮点数
d
=
'123'
# 字符串
e
=
True
# 一个字符
print
(
float
(
d
))
print
(
type
(
b
))
print
(
type
(
d
))
print
(
type
(
e
))
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