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
def get(self, k, defv=None):
try:
v = self.__getitem__(k)
return v
except:
if self.has(k):
return self[k]
else:
return defv
def copy(self):