提交 69ae2e91 编写于 作者: W wizardforcel

2020-06-28 10:32:25

上级 8244caa0
......@@ -52,7 +52,7 @@ print(abs(2+4j))
对于整数和浮点数,结果非常明显。 如果是`z = x + yi`的复数,则`abs()`函数将按如下方式计算绝对值:
绝对值= `|z| = √x² + y²`
绝对值`|z| = √x² + y²`
```py
=> 2+4j
......
......@@ -22,7 +22,7 @@ ord(c) -> code point
这是一个例子:
```
```py
>>>
>>> ord("A")
65
......@@ -44,11 +44,11 @@ ord(c) -> code point
128512
>>>
```py
```
试试看:
```
```py
print(ord("A"))
print(ord("f"))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册