from my_function import func0, func1
deffunc2():""" Discription: Call function 1
Args:
xx
Returns:
xx
"""
func1()passdeffunc3():""" Discription: Do something
Args:
xx
Returns:
xx
"""print("Hello worlld")defmain():
func0()
func2()
func3()
——test.py中所有的函数列表
Function List:
func2()# Discription: Call function 1
func3()# Discription: Do something
main()#
——从test.py中导入函数
from test import func2, func3, main