Skip to content

Commit f5b9661

Browse files
authored
Docs: Update math-module.md (#35)
1 parent 44c1c0d commit f5b9661

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

i18n/zh-cn/docusaurus-plugin-content-docs/current/math-module.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,16 @@ Python 中的 math 模块提供了各种数学函数和常量。
1212
设计一个程序,通过输入半径来计算圆的面积。
1313

1414
#### JavaScript 实现
15-
```
15+
16+
```typescript
1617
const radius = 5;
1718
const area = Math.PI * Math.pow(radius, 2);
1819
console.log(area);
1920
```
2021

2122
#### Python 实现
22-
```
23+
24+
```python
2325
import math
2426

2527
radius = 5

0 commit comments

Comments
 (0)