why python don't return after else statement in nested functions

前端 未结 0 1373
南笙
南笙 2020-12-07 02:29
def test1():
    def test2():
        if False:
            return 1
        else: return 2
    test2()

I don\'t know why, but this function isn\'t

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