OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47858b7
)
Update docs/lang/python.md
author
abc1763613206
<abc1763613206@163.com>
Fri, 23 Aug 2019 10:07:47 +0000
(
05:07
-0500)
committer
GitHub
<noreply@github.com>
Fri, 23 Aug 2019 10:07:47 +0000
(
05:07
-0500)
Co-Authored-By: ouuan <y___o___u@126.com>
docs/lang/python.md
patch
|
blob
|
history
diff --git
a/docs/lang/python.md
b/docs/lang/python.md
index
ad619af
..
10b7cd8
100644
(file)
--- a/
docs/lang/python.md
+++ b/
docs/lang/python.md
@@
-122,7
+122,7
@@
sudo apt install python3
整数(比如 `5` 、 `8` 、 `16` )有 `int` 类型,有小数部分的(如 `2.33` 、 `6.0` )则有 `float` 类型。随着更深入的学习你可能会接触到更多的类型,但是在速成阶段这些已经足够使用。
-在上面的实践中你也看到了,除法运算( `
\
` )永远返回浮点类型。如果你想要整数或向下取整的结果的话,可以使用整数除法( `//` )。
+在上面的实践中你也看到了,除法运算( `
/
` )永远返回浮点类型。如果你想要整数或向下取整的结果的话,可以使用整数除法( `//` )。
同样的,你也可以像 C++ 中一样,使用模( `%` )来计算余数。
```python3