{"id":3033,"date":"2019-10-11T09:30:40","date_gmt":"2020-02-12T14:06:27","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=3033"},"modified":"2020-02-12T22:06:32","modified_gmt":"2020-02-12T14:06:32","slug":"20da21327c","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=3033","title":{"rendered":"\u4f60\u5e38\u5e38\u5728\u5199\u7684 if __name__ == &#39;__main__&#39;  \u5230\u5e95\u662f\u4e2a\u5565\uff1f"},"content":{"rendered":"<div class=\"bpp-post-content\">\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><br style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\">&nbsp;<span style=\"font-size: 15px;color: rgb(0, 0, 0);\">\u4f60\u5728\u5199 Python \u4ee3\u7801\u7684\u65f6\u5019<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\">\u7ecf\u5e38\u4f1a\u5199\u5230\u8fd9\u4e48\u4e00\u53e5<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<h1 itemprop=\"name\" class=\"post-title\" style=\"text-align: center;line-height: 2em;margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">if __name__ == &#8216;__main__&#8217;&nbsp;<\/span><\/strong><\/h1>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u5e02\u9762\u4e0a\u5f88\u591a Python \u76f8\u5173\u7684\u6559\u7a0b<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u90fd\u662f\u5728\u8fd9\u91cc\u4e00\u7b14\u5e26\u8fc7<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     style=\"width: 49%;height: auto !important;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581516388.jpeg\" alt=\"python\" title=\"python\"  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6709\u4e9b\u6bd4\u8f83\u597d\u5947\u7684 b \u53cb<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u60f3\u77e5\u9053\u4e3a\u5565\u8981\u8fd9\u6837\u5199<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u521a\u597d\u6709\u4eba\u95ee\u8d77<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\">\u5c0f\u5e05b\u4eca\u5929\u5c31\u6765\u544a\u8bc9\u4f60\u4e3a\u5565<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\">\u90a3\u4e48\u63a5\u4e0b\u6765\u5c31\u662f<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">\u5b66\u4e60 Python \u7684\u6b63\u786e\u59ff\u52bf<\/span><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><a href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&amp;mid=2247485044&amp;idx=1&amp;sn=9204fb69b150dd817f17140d59766280&amp;chksm=fc8bbee5cbfc37f3fba6610d8033e46da8a81d0b08822f9aa477d8121d1926b71376f07ad454&amp;scene=21#wechat_redirect\" target=\"_blank\"  ><span class=\"js_jump_icon h5_image_link\"  style=\"top: auto;left: auto;margin: 0px;right: auto;bottom: auto;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"margin: 0px;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python9-1581516388.jpeg\" alt=\"python\" title=\"python\"  \/><\/span><\/a><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\">\u5f53\u4f60\u5728\u5199 .py \u7684\u65f6\u5019<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\">\u4e00\u822c\u662f\u4ee5\u4e24\u79cd\u65b9\u5f0f\u5b58\u5728\u7684<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">1\u3001\u4f5c\u4e3a\u811a\u672c\u76f4\u63a5\u8fd0\u884c\u4e86<\/span><\/strong><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python5-1581516389.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><\/span><\/strong><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">2\u3001\u4f5c\u4e3a\u6a21\u5757\u7ed9\u522b\u4eba\u5bfc\u5165<\/span><\/strong><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><br  \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python7-1581516389.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\"><\/span><\/strong><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u4f60\u7684\u4ee3\u7801\u5728\u88ab\u6267\u884c\u7684\u65f6\u5019<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">Python \u89e3\u91ca\u5668\u4f1a\u5148\u53bb<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u8bfb\u53d6\u4f60\u7684 Python \u4ee3\u7801<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u7136\u540e\u5b9a\u4e49\u4e00\u4e9b\u5168\u5c40\u7684\u5185\u7f6e\u53d8\u91cf<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u800c\u6211\u4eec\u5e38\u5e38\u5199\u7684\u8fd9\u4e2a&nbsp;__name__<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u5c31\u662f\u5176\u4e2d\u7684\u53d8\u91cf\u4e4b\u4e00<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6709\u4e9b\u4eba\u4f1a\u8fd9\u6837\u5224\u65ad<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">&nbsp;__name__&nbsp;\u7684\u503c\u662f&nbsp;__main__<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u5c31\u8bf4\u660e\u8fd9\u91cc\u662f\u7a0b\u5e8f\u5165\u53e3<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581516389.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u4e0d\u8fc7\u8fd9\u91cc\u7684\u8fd0\u884c\u7ed3\u679c\u662f<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;margin-left: 1em;margin-right: 1em;letter-spacing: 3px;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python10-1581516389.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u8fd9\u91cc\u6309\u987a\u5e8f\u8fd0\u884c<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u5148\u6267\u884c\u7684\u662f\u6253\u5370 name<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u8fd9\u548c java&nbsp;\u6709\u70b9\u4e0d\u540c<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6ca1\u6709\u6240\u8c13\u7684\u4e3b\u51fd\u6570<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<pre style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"font-size: 12px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">public static void main(String[] args){\u2026}<\/span><\/strong><\/pre>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\u8fd9\u4e2a&nbsp;__name__ \u662f\u6765\u5e72\u561b\u7684<\/span><span style=\"font-size: 15px;color: rgb(0, 0, 0);\"><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u628a<\/span><span style=\"color: rgb(0, 0, 0);font-size: 15px;text-align: justify;\">&nbsp;<\/span><span style=\"color: rgb(0, 0, 0);font-size: 12px;\"><strong><span style=\"color: rgb(0, 0, 0);text-align: justify;\">if __name__ == &#8216;__main__&#8217; <\/span><\/strong><\/span><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u53bb\u6389<\/span><span style=\"text-align: justify;\"><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u4e0d\u4e5f\u80fd\u7167\u6837\u8fd0\u884c<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581516390.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"           style=\"width: 312px;height: 82px;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python8-1581516390.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u6211\u4eec\u518d\u5b9a\u4e49\u4e00\u4e2a\u65b9\u6cd5<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u4e13\u95e8\u7528\u6765\u6253\u5370\u53d8\u91cf name \u7684\u503c<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python7-1581516390.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u76f4\u63a5\u8fd0\u884c<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u53ef\u4ee5\u770b\u5230 name \u7684\u503c\u662f main<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python1-1581516390-1.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u63a5\u7740<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6211\u4eec\u628a\u8fd9\u4e2a\u6587\u4ef6\u547d\u540d\u4e3a A.py&nbsp;<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u4f5c\u4e3a\u6a21\u5757\u7ed9 B.py \u5bfc\u5165<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u76f4\u63a5 import&nbsp;A<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u7136\u540e\u8fd0\u884c<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python7-1581516390-1.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">&nbsp;\u8fd0\u884c<\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python10-1581516391.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u53ef\u4ee5\u770b\u5230<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">A\u6a21\u5757\u7684\u8c03\u7528\u90fd\u88ab\u6267\u884c\u4e86<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u800c\u4e14\u6709\u4e00\u70b9\u5f88\u4e0d\u540c\u7684\u662f<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u8fd9\u91cc\u7684&nbsp;name \u503c\u662f <\/span><strong><span style=\"font-size: 15px;letter-spacing: 3px;text-align: center;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">A<\/span><\/strong><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u800c\u4e0d\u662f __main__<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u5230\u8fd9\u91cc\u4f60\u4f1a\u53d1\u73b0<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(255, 255, 255);\"><strong><span style=\"font-size: 15px;letter-spacing: 3px;text-align: center;background-color: rgb(255, 169, 0);\">\u5f53 .py \u76f4\u63a5\u8fd0\u884c\u7684\u65f6\u5019<br  \/><\/span><\/strong><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(255, 255, 255);\"><strong><span style=\"color: rgb(255, 255, 255);font-size: 15px;letter-spacing: 3px;text-align: center;background-color: rgb(255, 169, 0);\">__name__\u7684\u503c\u662f__main__<\/span><\/strong><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(255, 255, 255);\"><strong><span style=\"color: rgb(255, 255, 255);font-size: 15px;letter-spacing: 3px;text-align: center;background-color: rgb(255, 169, 0);\"><br  \/><\/span><\/strong><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(255, 255, 255);\"><strong><span style=\"color:#000000;\"><span style=\"color: rgb(255, 255, 255);font-size: 15px;background-color: rgb(255, 169, 0);\">\u800c\u5f53 .py \u88ab\u5f53\u4f5c\u6a21\u5757\u5bfc\u5165\u7684\u65f6\u5019<\/span><\/span><span style=\"color:#000000;\"><span style=\"color: rgb(255, 255, 255);font-size: 15px;background-color: rgb(255, 169, 0);\"><\/span><\/span><\/strong><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(255, 255, 255);\"><strong><span style=\"color:#000000;\"><span style=\"color: rgb(255, 255, 255);background-color: rgb(255, 169, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">__name__\u7684\u503c\u662f\u6a21\u5757\u7684\u540d\u79f0<\/span><\/span><\/strong><\/span><strong><span style=\"color:#000000;\"><span style=\"letter-spacing: 3px;text-align: center;font-size: 15px;background-color: rgb(255, 169, 0);\"><\/span><\/span><\/strong><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6211\u4eec\u63a5\u7740\u4fee\u6539\u4e00\u4e0b A.py<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u672c\u6765\u662f\u8fd9\u6837\u7684<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python8-1581516391.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u73b0\u5728\u6539\u6210\u8fd9\u6837<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python9-1581516391.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u518d\u8fd0\u884c B.py<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python7-1581516391.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\">\u8fd9\u6b21\u5c31\u4e0d\u4f1a\u8fd0\u884c\u5230&nbsp;A \u7684\u8c03\u7528\u4e86<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/span><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\"rich_pages aligncenter\"      style=\"\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python5-1581516392.png\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><\/span><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;letter-spacing: 3px;text-align: center;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6240\u4ee5\u4f60\u7684&nbsp;.py \u53ef\u4ee5<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u4f5c\u4e3a\u81ea\u5df1\u7684\u811a\u672c\u8fd0\u884c<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u5728 main \u4e2d\u505a\u4e00\u4e9b\u6d4b\u8bd5<\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\">\u6216\u8005\u672c\u8eab\u7a0b\u5e8f\u7684\u8fd0\u884c<br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u5f53\u7136\u4f60\u4e5f\u53ef\u4ee5<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u4f7f\u7528\u4f60\u7684&nbsp;.py \u4f5c\u4e3a\u6a21\u5757\u7ed9\u522b\u4eba\u4f7f\u7528<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u7ed9\u522b\u4eba\u63d0\u4f9b\u4e00\u4e9b\u4fbf\u5229<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u4e3a\u4e86\u4e0d\u8ba9\u522b\u4eba\u4e00\u5bfc\u5165\u4f60\u7684\u6a21\u5757<br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u5c31\u76f4\u63a5\u8fd0\u884c\u6574\u4e2a\u811a\u672c<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u4f7f\u7528<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><br  \/><\/p>\n<h1 itemprop=\"name\" class=\"post-title\" style=\"margin-right: 1em;margin-left: 1em;white-space: normal;text-align: center;line-height: 2em;letter-spacing: 3px;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">if __name__ == &#8216;__main__&#8217;&nbsp;<\/span><\/strong><\/h1>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">&nbsp;<br  \/><\/span><\/span><br  \/><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">ok\uff0c\u4ee5\u4e0a<br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u5e0c\u671b\u5bf9\u4f60\u6709\u5e2e\u52a9<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\">\u90a3\u4e48\u6211\u4eec\u4e0b\u56de\u89c1<\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><strong><span style=\"font-size: 15px;background-color: rgb(255, 169, 0);color: rgb(255, 255, 255);\">peace<\/span><\/strong><span style=\"color: rgb(0, 0, 0);font-size: 15px;\"><br  \/><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 1em;margin-right: 1em;letter-spacing: 3px;text-align: center;line-height: 2em;\"><span style=\"color:#000000;\"><span style=\"font-size: 15px;\"><br  \/><\/span><\/span><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><img decoding=\"async\" class=\"mpa-image aligncenter\"     style=\"width: 31%;height: auto !important;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python9-1581516392.gif\" alt=\"python\" title=\"python\"  \/><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\">\u626b\u4e00\u626b<\/span><\/strong><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\">\u5b66\u4e60 Python \u6ca1\u70e6\u607c<\/span><\/strong><\/p>\n<p style=\"margin-left: 0.5em;margin-right: 0.5em;letter-spacing: 3px;text-align: center;\"><strong><span style=\"letter-spacing: 2px;text-align: center;\"><br  \/><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><img decoding=\"async\" class=\" aligncenter\"       style=\"width: 33%;box-shadow: rgb(170, 170, 170) 0em 0em 1em 0px;height: auto !important;\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2020\/02\/python6-1581516392.jpeg\" alt=\"python\" title=\"python\"  \/><\/p>\n<blockquote class=\"keep-source\">\n<p>\u539f\u6587\u59cb\u53d1\u4e8e\u5fae\u4fe1\u516c\u4f17\u53f7\uff08\u5b66\u4e60python\u7684\u6b63\u786e\u59ff\u52bf\uff09\uff1a<a target=\"_blank\" href=\"http:\/\/mp.weixin.qq.com\/s?__biz=MzU2ODYzNTkwMg==&#038;mid=2247485702&#038;idx=1&#038;sn=9c6c86a977a0093d4474b1099fcf8b01&#038;chksm=fc8bb197cbfc38814cc9308206e8fc2e8bf14eb6582aa20bf3eaf8627dabb176855035c734b6\">python<\/a><\/p>\n<\/blockquote>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;\u4f60\u5728\u5199 Python \u4ee3\u7801\u7684\u65f6\u5019 \u7ecf\u5e38\u4f1a\u5199\u5230\u8fd9\u4e48\u4e00\u53e5 if __name__ == &#8216;__main__&#8217;&nbsp; \u5e02\u9762\u4e0a\u5f88\u591a Python \u76f8\u5173\u7684\u6559\u7a0b \u90fd\u662f\u5728\u8fd9\u91cc\u4e00\u7b14\u5e26\u8fc7 \u6709\u4e9b\u6bd4\u8f83\u597d\u5947\u7684 b \u53cb \u60f3\u77e5\u9053\u4e3a\u5565\u8981\u8fd9&hellip;<\/p>\n","protected":false},"author":1,"featured_media":3034,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[303],"tags":[302,19,300,301],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/3033"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3033"}],"version-history":[{"count":1,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/3033\/revisions"}],"predecessor-version":[{"id":3053,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/3033\/revisions\/3053"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/media\/3034"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3033"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3033"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3033"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}