Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix index.md file, from '试图’ to '视图' #172

Merged
merged 1 commit into from Jan 5, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion SOURCE/how_tos/variable_scope/index.md
Expand Up @@ -55,7 +55,7 @@ result1 = my_image_filter(image1, variables_dict)
result2 = my_image_filter(image2, variables_dict)
```
虽然使用上面的方式创建变量是很方便的,但是在这个模块代码之外却破坏了其封装性:
* 在构建试图的代码中标明变量的名字,类型,形状来创建.
* 在构建视图的代码中标明变量的名字,类型,形状来创建.
* 当代码改变了,调用的地方也许就会产生或多或少或不同类型的变量.

解决此类问题的方法之一就是使用类来创建模块,在需要的地方使用类来小心地管理他们需要的变量.
Expand Down