📜  如何在 python 代码示例中导入模块

📅  最后修改于: 2022-03-11 14:45:59.018000             🧑  作者: Mango

代码示例6
# import all functions in the module 0-print_list_intiger
import 0-print_list_intiger 
# import only print_list_integer function from the module 0-print_list_intiger
from 0-print_list_integer import print_list_intiger
# point the function print_list_intiger from the module 0-print_list_intiger to a string print_list_intiger
print_list_intiger = __import__('0-print_list_intiger').print_list_integer