Skip to content

Commit a1bfc5f

Browse files
authored
Docs: Update arithmetic-operation.md (#46)
1 parent 6a6ff0e commit a1bfc5f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/arithmetic-operation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ print("Updated num2 after decrement:", num2)
9898

9999
### Code Highlight
100100
- The syntax for addition, subtraction, multiplication, division, remainder, and exponentiation in Python is the same as in JavaScript.
101-
- sum is the [Built-in Function](https://docs.python.org/3/library/functions.html?highlight=sum#sum) in Python, it is important to avoid using it.
101+
- `sum` is the [Built-in Function](https://docs.python.org/3/library/functions.html?highlight=sum#sum) in Python, it is important to avoid using it as a variable name.
102102
- Python does not have the `++` and `--` operators. Instead, `+=` and `-=` are used to increment or decrement variables.
103103

104104
### Difference Quick View

i18n/zh-cn/docusaurus-plugin-content-docs/current/arithmetic-operation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ print("自减后的 num2:", num2)
9898

9999
### 代码解读
100100
- Python 的加、减、乘、除、取余、指数运算语法与 JavaScript 一致。
101-
- sum 在Python中是 [内置函数](https://docs.python.org/3/library/functions.html?highlight=sum#sum)在编写代码时应避免使用
101+
- `sum` 在 Python 中是 [内置函数](https://docs.python.org/3/library/functions.html?highlight=sum#sum)在编写代码时应避免将其用作变量名
102102
- Python 中没有 `++``--` 运算符,需要使用 `+=``-=` 对变量进行自增或自减。
103103

104104
### 差异速览

0 commit comments

Comments
 (0)