【PYTHON】模組(module)使用
阿新 • • 發佈:2019-02-14
Python module
A module is a collection of functions and variables that have been bundled together in a single file.working with the functions defined in modules
匯入: import my_module 使用: my_module.some_function() 當模組名字太長時,匯入: import my_module as m 使用: m.function1() 當模組包含的function太多,而只需使用其中幾個時: from my_module import function1 使用:內部執行如下: