Python import
import语句允许在当前运行的程序文件中使用模块中的代码类似于c c++头文件包含
也可以对引用的函数通过as取别名
# 模块函数的引用(调用外部函数)
# module.make_pizz(16, 'pepperoni')
# module.make_pizz(12, 'mushrooms', 'green peppers', 'etra')、
# 给调用函数起别名,与直接调用 效果一模一样
# from module import make_pizz as my_function
# my_function(16, 'pepperoni')
# my_function(12, 'mushrooms', 'green peppers', 'etra')
# 还可以直接这么操作
# import module as my_function
# my_function.make_pizz(16, 'pepperoni')
# my_function.make_pizz(12, 'mushrooms', 'green peppers', 'etra')
模块函数(其他文件函数)