Python 引入模块:import
#Filename:support.py
def print_func(p):
print("Hello: ",p)
return
#FileName test.py
import support
print('引入support.py中的自定义函数')
support.print_func("Runoob")
#Filename:support.py
def print_func(p):
print("Hello: ",p)
return
#FileName test.py
import support
print('引入support.py中的自定义函数')
support.print_func("Runoob")