This website requires JavaScript.
Explore
Help
Register
Sign In
RyanMZ
/
python
Watch
1
Star
0
Fork
You've already forked python
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
master
python
/
2024-7-5-数的绝对值.py
6 lines
118 B
Python
Raw
Permalink
Blame
History
# 读取输入的浮点数
n
=
float
(
input
(
)
)
# 计算并输出绝对值,保留两位小数
print
(
f
"
{
abs
(
n
)
:
.2f
}
"
)
Reference in New Issue
View Git Blame
Copy Permalink