资讯

This post explains what a Python module is and how to use it to drastically extend the capabiltiies of your code. Plus: how to make your own!
How to use cProfile The cProfile module gathers statistics about the execution time of a Python program. It can report on anything from the entire app to a single statement or expression.
For apps with a module entry point, make a stub: Some applications use a module as an entry point, for instance by having a __main__.py file that’s invoked when the module is imported.