class InsertDb():
a={'matcode':'mat001','ownercode':'8000'}
b={'matcode': 'mat002', 'packid': '123'}
def __init__(self, tab, dic):
self.tab = tab
self.dic = dic
print(tab)
insert = InsertDb('a',{'matcode': 'mat002', 'packid': '123'})
类中定义了a、b两个字典,想调方法的时候传入a,把a字典拿到