Readability (#33134)
This commit is contained in:
@ -16,8 +16,8 @@ localeTitle: Python Abs函数
|
|||||||
|
|
||||||
```python
|
```python
|
||||||
print(abs(3.4)) # prints 3.4
|
print(abs(3.4)) # prints 3.4
|
||||||
print(abs(-6)) # prints 6
|
print(abs(-6)) # prints 6
|
||||||
print(abs(3 + 4j)) # prints 5, because |3 + 4j| = 5
|
print(abs(3 + 4j)) # prints 5, because |3 + 4j| = 5
|
||||||
```
|
```
|
||||||
|
|
||||||
[🚀运行代码](https://repl.it/CL8k/0)
|
[🚀运行代码](https://repl.it/CL8k/0)
|
||||||
@ -26,4 +26,4 @@ print(abs(3.4)) # prints 3.4
|
|||||||
|
|
||||||
### 来源
|
### 来源
|
||||||
|
|
||||||
1. [数学很有趣。访问时间:2017年10月25日](https://www.mathsisfun.com/numbers/absolute-value.html)
|
1. [数学很有趣。访问时间:2017年10月25日](https://www.mathsisfun.com/numbers/absolute-value.html)
|
||||||
|
Reference in New Issue
Block a user