📜  同一类中的python调用函数 - Python代码示例

📅  最后修改于: 2022-03-11 14:47:08.449000             🧑  作者: Mango

代码示例1
# Add the argument ".self" before your function's name --> line 12

class ThisClass:
      def __init__(self):
          self.a_random_arg = a_random_arg
    
    def FirstDef(self):
           [Here my function]
      
    def SecondDef(self):
        if self.FirsDef:
          [following]