Python中if __name__ == '__main__':的作用和原理 可以参考此篇文章 https://blog.csdn.net/heqiang525/article/details/89879056