This commit is contained in:
yumoqing 2024-04-17 15:54:42 +08:00
parent aff73f193a
commit c8ff8f551e

View File

@ -75,10 +75,9 @@ class DictObject(dict):
self[attr] = value self[attr] = value
def get(self, k, defv=None): def get(self, k, defv=None):
try: if self.has(k):
v = self.__getitem__(k) return self[k]
return v else:
except:
return defv return defv
def copy(self): def copy(self):