Study notes (5): zero-base mastering Python entry to actual combat-building blocks yourself: writing and building modules (2)...

Learn now: https://edu.csdn.net/course/play/26676/402884?utm_source=blogtoedu

1. Module

If a template is introduced to display: there is no template called xxx, but we have clearly installed this template, then this may be a path conflict. The solution can be to add the installation path of the module under the python system search path. Use the command in the command line: sys.path.append('xx/xx/...')

 2 bags

Packages have a certain level of directory structure, including .py files or subdirectories, and __init__.py.

Guess you like

Origin blog.csdn.net/weixin_44566432/article/details/107812222
Recommended