if __name__ == "__main__"

文件被调用时不执行main()

原文地址:https://www.cnblogs.com/tester-go/p/8080273.html