python 3中的__class__有什么用?

时间:2019-07-07 01:59:58

标签: python-3.x

有时我需要从实例方法访问类属性。我发现使用__class__来访问它的方法。我想知道__class__的工作原理以及它的用途是什么?

0 个答案:

没有答案