让Python支持import/export功能
pip:
pip install export-module
from export-module import *
Import("module name")
Import("object name").From("module name")
Import("object name").As("variable name") #Temporarily unavailable
from export-module import *
Export(object)
Export(name=object,)
from export-module import *
def test(name):
print(name)
class a(object):
def __init__(self):
pass
Export(test,obj=a)
from export-module import *
t2 = Import('test').From("file1")
a = Import('obj').From("file1")