From 806c75f3b939ddf990669fdf967e4ab6b0506509 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 12 May 2021 00:55:36 +0800 Subject: [PATCH] bugfix --- appPublic/registerfunction.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appPublic/registerfunction.py b/appPublic/registerfunction.py index 9f32878..a932ea3 100644 --- a/appPublic/registerfunction.py +++ b/appPublic/registerfunction.py @@ -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)