This commit is contained in:
yumoqing 2021-05-12 00:55:36 +08:00
parent e9011c55ac
commit 806c75f3b9

View File

@ -14,6 +14,14 @@ class RegisterFunction:
return self.registKW.get(name,None)
def getRegisterFunctionByName(name):
rf = RegisterFunction()
return rf.get(name)
def registerFunction(name, func):
rf = RegisterFunction()
rf.register(name, func)
if __name__ == '__main__':
def x(a):
print('x():a=',a)