同一类中另一个方法内的Python方法

时间:2018-10-27 16:32:23

标签: python

我在为下面的代码获取解决方案方面有些挣扎,请帮忙

问题:目前,我在同一个类中有两个方法,当我尝试在相同的方法中打印值时,我得到的值很好(print(self.folders)),但是当我尝试在另一个方法中获取值{{ 1}}我在控制台中获得了“无”状态

在问这个问题之前,我先通过以下问题print(linked_folders)来帮助我找到了解决方法

  1. call a method of a class in another method in that same class in python
  2. If function A is required only by function B should A be defined inside B?
None

0 个答案:

没有答案
相关问题