class Test: def prt(self): print(self) print(self. ... 当我们调用t.prt()时,实际上Python解释成Test.prt(t),也就是说把self替换成类的实例。
確定! 回上一頁