else after if __name__ == “__main__”

前端 未结 0 400
青春惊慌失措
青春惊慌失措 2020-12-11 00:37

I came upon a strange behavious in Python. Writting

if __name__ == "__main__":
    pass
else:
    pass

I get a SyntaxError: i

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