first updata

This commit is contained in:
2024-02-26 18:17:15 +08:00
commit 1ec018ca90
162 changed files with 123649 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
def get_context():
if QrContext.instance is None:
QrContext.instance = QrContext()
return QrContext.instance
class QrContext():
instance = None
all_obj = {}
def get(self, key):
return self.all_obj.get(key)
def add(self, key, v):
self.all_obj.update({key: v})
def remove(self, key):
del self.all_obj[key]