1 parent c00cc51 commit 462bfc3Copy full SHA for 462bfc3
1 file changed
Day01-20/06.循环结构.md
@@ -330,7 +330,7 @@ while True:
330
print(f'你一共猜了{counter}次.')
331
```
332
333
-> **说明**:上面的代码使用`import random`导入了 Python 标准库的`random`模块,该模块的`randrange`函数帮助我们生成了 1 到 100 范围的随机数(不包括 100)。变量`counter`用来记录循环执行的次数,也就是用户一共猜了几次,每循环一次`counter`的值都会加 1。
+> **说明**:上面的代码使用`import random`导入了 Python 标准库的`random`模块,该模块的`randrange`函数帮助我们生成了 1 到 100 范围的随机数。变量`counter`用来记录循环执行的次数,也就是用户一共猜了几次,每循环一次`counter`的值都会加 1。
334
335
### 总结
336
0 commit comments