Skip to content

Commit

Permalink
黄哥所写python文章
Browse files Browse the repository at this point in the history
  • Loading branch information
likepython committed May 6, 2016
1 parent c9a73e1 commit 7a403d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions python/learn_python_follow_brother_huang_4.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,12 @@

![](operator.png)

\- 减法 35 - 20
* 乘法 3 * 3
/ 除法 python 3 中 9 / 3 结果为 3.0 如果想和python 2 一样进行地板除(建议搜索一下何为地板除),那么需要这样, 9 // 3
// 地板除 9 // 2 结果为4
** 乘方 2 ** 3 结果为 8。相当于import math math.pow(2, 3)。
% 取余或取模运算符,即求出除法后的余数。
- 减法 35 - 20
* 乘法 3 * 3
/ 除法 python 3 中 9 / 3 结果为 3.0 如果想和python 2 一样进行地板除(建议搜索一下何为地板除),那么需要这样, 9 // 3
// 地板除 9 // 2 结果为4
** 乘方 2 ** 3 结果为 8。相当于import math math.pow(2, 3)。
% 取余或取模运算符,即求出除法后的余数。

## 算术表达式和运算符优先级

Expand Down

0 comments on commit 7a403d7

Please sign in to comment.