In python ,how can I use a method of a class in a normal function outside the class?

后端 未结 0 1767
轻奢々
轻奢々 2020-11-28 17:24

In python ,how can I use a method of a class in a normal function outside the class?

Class Python:
    def __init__(self,a):
        self.__a=a
    def get_a(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题