标签: python-3.x inheritance
我想访问子类
class a(object): val=[] def func1(): val=['cat','dog'] print(val) class b(a): #how to get the value of variable val