For information about writing a module definition statement, see Rules for Module-Definition Statements.
如需撰写模组定义陈述式的详细资讯,请参阅模组定义陈述式的规则。
So, you have a Python module that provides some useful function, but as it is, there is not much that you can do with it, aside from writing a Python script that uses the methods.
那么,现在就有了提供一些有用功能的 Python 模块,但此模块很简单,除了编写 Python 脚本来使用其中的方法外,并不能使用其进行太多的工作。
It will be gone when the program finishes if you do not take steps to save it (such as writing it to a real file, or using the shelve module or a database).
如果不保存它(如将它写入一个真正的文件,或者使用shelve模块或数据库),则程序结束时,它将消失。
应用推荐