方法一:
def bar(self): self.is_not_used() doing_something_without_self() def is_not_used(self): pass
方法二:
# noinspection PyMethodMayBeStatic def bar(self): doing_something_without_self()