Skip to content

Commit 5dfb408

Browse files
committed
Update README.md
1 parent 79311c3 commit 5dfb408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/python-basic/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,6 @@ with open("example.txt", "w") as file:
368368

369369
### 模块导入变量
370370

371-
这部分的内容主要来自参考文章[2]
372-
373371
核心思想是把同一个全局模块的内容组织到一个py文件中,通过模块导入的方式共享到相同模块的代码中:
374372

375373
看例子,在`main.py`中:
@@ -417,6 +415,8 @@ def print_name_in_3rd_module():
417415

418416
通过这种方式,可以在多个不同的文件间组织和共享变量。
419417

418+
> 这部分的内容的组织方式自参考了文章[2]
419+
420420
## Reference
421421

422422
1. [Python 3 官方文档](https://docs.python.org/zh-cn/3/)

0 commit comments

Comments
 (0)