{"id":970273,"date":"2024-12-27T05:24:36","date_gmt":"2024-12-26T21:24:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/970273.html"},"modified":"2024-12-27T05:24:38","modified_gmt":"2024-12-26T21:24:38","slug":"arcgis%e5%a6%82%e4%bd%95%e4%bf%9d%e5%ad%98python%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/970273.html","title":{"rendered":"arcgis\u5982\u4f55\u4fdd\u5b58python\u811a\u672c"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24193704\/70a6d55e-98a0-4572-af43-b4d0ca2caba9.webp\" alt=\"arcgis\u5982\u4f55\u4fdd\u5b58python\u811a\u672c\" \/><\/p>\n<p><p> <strong>\u5728ArcGIS\u4e2d\u4fdd\u5b58Python\u811a\u672c\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528ArcGIS\u5185\u7f6e\u7684Python\u7a97\u53e3\u3001\u5c06\u811a\u672c\u5bfc\u51fa\u5230\u5916\u90e8Python IDE\u3001\u4fdd\u5b58\u4e3a.py\u6587\u4ef6\u3001\u4f7f\u7528\u811a\u672c\u5de5\u5177\u7bb1\u8fdb\u884c\u7ba1\u7406\u3002\u8981\u8be6\u7ec6\u4fdd\u5b58\u548c\u7ba1\u7406\u8fd9\u4e9b\u811a\u672c\uff0c\u9996\u5148\u9700\u8981\u638c\u63e1ArcGIS\u7684\u73af\u5883\u8bbe\u7f6e\u548cPython\u811a\u672c\u7684\u57fa\u672c\u7ed3\u6784\u3002<\/strong>\u5176\u4e2d\uff0c\u5c06\u811a\u672c\u5bfc\u51fa\u5230\u5916\u90e8Python IDE\u662f\u4e00\u4e2a\u91cd\u8981\u6b65\u9aa4\uff0c\u56e0\u4e3a\u5b83\u5141\u8bb8\u60a8\u5728\u66f4\u7075\u6d3b\u7684\u73af\u5883\u4e2d\u8fdb\u884c\u811a\u672c\u7684\u5f00\u53d1\u548c\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528ArcGIS\u5185\u7f6e\u7684Python\u7a97\u53e3<\/p>\n<\/p>\n<p><p>ArcGIS\u63d0\u4f9b\u4e86\u4e00\u4e2a\u5185\u7f6e\u7684Python\u7a97\u53e3\uff0c\u4f7f\u7528\u6237\u53ef\u4ee5\u5728ArcMap\u6216ArcGIS Pro\u4e2d\u76f4\u63a5\u7f16\u5199\u548c\u6267\u884cPython\u4ee3\u7801\u3002\u6b64\u7a97\u53e3\u662f\u8fdb\u884c\u5c0f\u89c4\u6a21\u811a\u672c\u6d4b\u8bd5\u548c\u5f00\u53d1\u7684\u7406\u60f3\u573a\u6240\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>Python\u7a97\u53e3\u7684\u8bbf\u95ee\u548c\u4f7f\u7528<\/strong><br \/>\u5728ArcMap\u6216ArcGIS Pro\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u201cGeoprocessing\u201d\u83dc\u5355\u8bbf\u95eePython\u7a97\u53e3\u3002\u6253\u5f00Python\u7a97\u53e3\u540e\uff0c\u60a8\u53ef\u4ee5\u7acb\u5373\u8f93\u5165\u548c\u6267\u884cPython\u4ee3\u7801\u3002\u6b64\u7a97\u53e3\u975e\u5e38\u9002\u5408\u4e8e\u5feb\u901f\u6d4b\u8bd5\u548c\u9a8c\u8bc1Python\u811a\u672c\u7684\u5404\u4e2a\u90e8\u5206\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u4fdd\u5b58Python\u811a\u672c\u7684\u57fa\u672c\u65b9\u6cd5<\/strong><br \/>\u4e00\u65e6\u60a8\u5728Python\u7a97\u53e3\u4e2d\u6210\u529f\u6267\u884c\u4e86\u811a\u672c\uff0c\u60a8\u53ef\u4ee5\u9009\u62e9\u5c06\u5176\u590d\u5236\u7c98\u8d34\u5230\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u5e76\u4fdd\u5b58\u4e3a.py\u6587\u4ef6\u3002\u8fd9\u662f\u4fdd\u5b58\u811a\u672c\u7684\u6700\u7b80\u5355\u65b9\u6cd5\uff0c\u4f46\u9700\u8981\u786e\u4fdd\u9009\u62e9\u5408\u9002\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u5982Notepad++\u6216Visual Studio Code\uff0c\u4ee5\u4fbf\u63d0\u4f9b\u8bed\u6cd5\u9ad8\u4eae\u548c\u9519\u8bef\u68c0\u6d4b\u529f\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u5c06\u811a\u672c\u5bfc\u51fa\u5230\u5916\u90e8Python IDE<\/p>\n<\/p>\n<p><p>\u4e3a\u4e86\u66f4\u597d\u5730\u5f00\u53d1\u548c\u7ba1\u7406Python\u811a\u672c\uff0c\u8bb8\u591a\u7528\u6237\u9009\u62e9\u5c06\u4ed6\u4eec\u7684\u811a\u672c\u5bfc\u51fa\u5230\u5916\u90e8Python\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\uff0c\u5982PyCharm\u6216Visual Studio Code\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u5408\u9002\u7684IDE<\/strong><br \/>IDE\u63d0\u4f9b\u4e86\u6bd4ArcGIS\u5185\u7f6ePython\u7a97\u53e3\u66f4\u5f3a\u5927\u7684\u529f\u80fd\uff0c\u5982\u7248\u672c\u63a7\u5236\u3001\u8c03\u8bd5\u5de5\u5177\u548c\u66f4\u597d\u7684\u4ee3\u7801\u5bfc\u822a\u3002\u9009\u62e9\u9002\u5408\u60a8\u7684IDE\u53ef\u4ee5\u63d0\u9ad8\u811a\u672c\u7684\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8bbe\u7f6e\u5916\u90e8IDE\u4e0eArcGIS\u73af\u5883\u7684\u517c\u5bb9\u6027<\/strong><br \/>\u5728\u5916\u90e8IDE\u4e2d\u7f16\u5199ArcGIS Python\u811a\u672c\u65f6\uff0c\u786e\u4fdd\u60a8\u7684\u5f00\u53d1\u73af\u5883\u4e0eArcGIS\u7684Python\u73af\u5883\u517c\u5bb9\u3002\u4f8b\u5982\uff0c\u8bbe\u7f6e\u6b63\u786e\u7684Python\u89e3\u91ca\u5668\u8def\u5f84\uff0c\u4ee5\u4fbf\u80fd\u591f\u8bbf\u95eeArcPy\u6a21\u5757\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4fdd\u5b58\u4e3a.py\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u4fdd\u5b58Python\u811a\u672c\u4e3a.py\u6587\u4ef6\u662f\u786e\u4fdd\u4ee3\u7801\u53ef\u91cd\u7528\u548c\u53ef\u5206\u4eab\u7684\u5173\u952e\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9009\u62e9\u4fdd\u5b58\u8def\u5f84\u548c\u6587\u4ef6\u547d\u540d<\/strong><br \/>\u5c06\u811a\u672c\u4fdd\u5b58\u5230\u4e00\u4e2a\u6613\u4e8e\u8bbf\u95ee\u548c\u7ba1\u7406\u7684\u76ee\u5f55\u4e2d\uff0c\u5e76\u4f7f\u7528\u6709\u610f\u4e49\u7684\u6587\u4ef6\u540d\uff0c\u4ee5\u4fbf\u4e8e\u65e5\u540e\u7684\u67e5\u627e\u548c\u4f7f\u7528\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u811a\u672c\u6ce8\u91ca\u548c\u6587\u6863\u5316<\/strong><br \/>\u5728\u811a\u672c\u4e2d\u52a0\u5165\u8be6\u7ec6\u7684\u6ce8\u91ca\uff0c\u8bf4\u660e\u6bcf\u4e2a\u529f\u80fd\u5757\u7684\u7528\u9014\u548c\u5b9e\u73b0\u7ec6\u8282\u3002\u8fd9\u4e0d\u4ec5\u6709\u52a9\u4e8e\u4ed6\u4eba\u7406\u89e3\u60a8\u7684\u4ee3\u7801\uff0c\u4e5f\u4fbf\u4e8e\u60a8\u5728\u672a\u6765\u5bf9\u4ee3\u7801\u8fdb\u884c\u7ef4\u62a4\u548c\u6269\u5c55\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u4f7f\u7528\u811a\u672c\u5de5\u5177\u7bb1\u8fdb\u884c\u7ba1\u7406<\/p>\n<\/p>\n<p><p>ArcGIS\u63d0\u4f9b\u4e86\u811a\u672c\u5de5\u5177\u7bb1\u529f\u80fd\uff0c\u4ee5\u5e2e\u52a9\u7528\u6237\u66f4\u597d\u5730\u7ec4\u7ec7\u548c\u7ba1\u7406Python\u811a\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efa\u811a\u672c\u5de5\u5177\u7bb1<\/strong><br \/>\u5728ArcCatalog\u4e2d\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u811a\u672c\u5de5\u5177\u7bb1\uff0c\u5e76\u5c06.py\u811a\u672c\u6dfb\u52a0\u5230\u5176\u4e2d\u3002\u8fd9\u6837\u53ef\u4ee5\u66f4\u597d\u5730\u7ec4\u7ec7\u811a\u672c\uff0c\u5e76\u5c06\u5176\u4e0e\u7279\u5b9a\u7684\u5730\u7406\u5904\u7406\u4efb\u52a1\u5173\u8054\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u811a\u672c\u5de5\u5177<\/strong><br \/>\u5728\u811a\u672c\u5de5\u5177\u7bb1\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u811a\u672c\u5de5\u5177\u914d\u7f6e\u53c2\u6570\u548c\u73af\u5883\u8bbe\u7f6e\u3002\u8fd9\u4f7f\u5f97\u811a\u672c\u80fd\u591f\u66f4\u7075\u6d3b\u5730\u5904\u7406\u4e0d\u540c\u7684\u6570\u636e\u8f93\u5165\u548c\u8f93\u51fa\u9700\u6c42\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u5728ArcGIS\u4e2d\u8c03\u8bd5\u548c\u6d4b\u8bd5Python\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728\u4fdd\u5b58\u548c\u7ba1\u7406Python\u811a\u672c\u4e4b\u540e\uff0c\u8c03\u8bd5\u548c\u6d4b\u8bd5\u662f\u786e\u4fdd\u811a\u672c\u529f\u80fd\u6b63\u5e38\u7684\u5173\u952e\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528ArcGIS\u4e2d\u7684\u8c03\u8bd5\u5de5\u5177<\/strong><br \/>ArcGIS\u63d0\u4f9b\u4e86\u4e00\u4e9b\u57fa\u672c\u7684\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u8bc6\u522b\u548c\u4fee\u590d\u811a\u672c\u4e2d\u7684\u9519\u8bef\u3002\u4f8b\u5982\uff0c\u60a8\u53ef\u4ee5\u5728Python\u7a97\u53e3\u4e2d\u9010\u6b65\u6267\u884c\u811a\u672c\uff0c\u4ee5\u68c0\u67e5\u6bcf\u4e2a\u6b65\u9aa4\u7684\u8f93\u51fa\u548c\u72b6\u6001\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5728\u5916\u90e8IDE\u4e2d\u8fdb\u884c\u9ad8\u7ea7\u8c03\u8bd5<\/strong><br \/>\u5916\u90e8IDE\u901a\u5e38\u63d0\u4f9b\u66f4\u9ad8\u7ea7\u7684\u8c03\u8bd5\u529f\u80fd\uff0c\u5982\u65ad\u70b9\u8bbe\u7f6e\u548c\u53d8\u91cf\u76d1\u89c6\uff0c\u5e2e\u52a9\u60a8\u66f4\u5feb\u901f\u5730\u627e\u51fa\u811a\u672c\u4e2d\u7684\u6f5c\u5728\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516d\u3001\u4f18\u5316\u548c\u63d0\u5347Python\u811a\u672c\u7684\u6027\u80fd<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u548c\u7ba1\u7406Python\u811a\u672c\u65f6\uff0c\u6027\u80fd\u4f18\u5316\u662f\u4e00\u4e2a\u91cd\u8981\u7684\u8003\u8651\u56e0\u7d20\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5927\u89c4\u6a21\u5730\u7406\u6570\u636e\u65f6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5206\u6790\u811a\u672c\u6027\u80fd\u74f6\u9888<\/strong><br \/>\u4f7f\u7528Python\u7684\u6027\u80fd\u5206\u6790\u5de5\u5177\uff0c\u5982cProfile\u548cline_profiler\uff0c\u8bc6\u522b\u811a\u672c\u4e2d\u6700\u8017\u65f6\u7684\u90e8\u5206\u3002\u8fd9\u4e9b\u5de5\u5177\u53ef\u4ee5\u5e2e\u52a9\u60a8\u786e\u5b9a\u9700\u8981\u4f18\u5316\u7684\u5177\u4f53\u4ee3\u7801\u5757\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5e94\u7528\u6027\u80fd\u4f18\u5316\u6280\u5de7<\/strong><br \/>\u6839\u636e\u5206\u6790\u7ed3\u679c\uff0c\u60a8\u53ef\u4ee5\u91c7\u53d6\u4e00\u7cfb\u5217\u6027\u80fd\u4f18\u5316\u63aa\u65bd\uff0c\u5982\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u6570\u636e\u7ed3\u6784\u3001\u4f18\u5316\u7b97\u6cd5\u548c\u51cf\u5c11\u4e0d\u5fc5\u8981\u7684I\/O\u64cd\u4f5c\u7b49\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e03\u3001\u5c06Python\u811a\u672c\u96c6\u6210\u5230\u5de5\u4f5c\u6d41\u7a0b\u4e2d<\/p>\n<\/p>\n<p><p>\u5c06Python\u811a\u672c\u96c6\u6210\u5230ArcGIS\u5de5\u4f5c\u6d41\u7a0b\u4e2d\uff0c\u53ef\u4ee5\u63d0\u9ad8\u5730\u7406\u5904\u7406\u4efb\u52a1\u7684\u81ea\u52a8\u5316\u7a0b\u5ea6\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u81ea\u52a8\u5316\u5730\u7406\u5904\u7406\u4efb\u52a1<\/strong><br \/>\u901a\u8fc7\u5c06Python\u811a\u672c\u4e0eArcGIS\u5730\u7406\u5904\u7406\u5de5\u5177\u7ed3\u5408\uff0c\u60a8\u53ef\u4ee5\u521b\u5efa\u81ea\u52a8\u5316\u7684\u5de5\u4f5c\u6d41\u7a0b\u3002\u4f8b\u5982\uff0c\u4f7f\u7528ModelBuilder\u7ed3\u5408Python\u811a\u672c\uff0c\u5b9e\u73b0\u590d\u6742\u7684\u5730\u7406\u6570\u636e\u5206\u6790\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u7ed3\u5408\u5176\u4ed6GIS\u5de5\u5177\u548c\u670d\u52a1<\/strong><br \/>\u9664\u4e86ArcGIS\uff0c\u60a8\u8fd8\u53ef\u4ee5\u5c06Python\u811a\u672c\u4e0e\u5176\u4ed6GIS\u5de5\u5177\u548c\u670d\u52a1\u7ed3\u5408\uff0c\u6269\u5c55\u5176\u5e94\u7528\u8303\u56f4\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Python\u4e0eQGIS\u7684PyQGIS\u6a21\u5757\u7ed3\u5408\uff0c\u5b9e\u73b0\u8de8\u5e73\u53f0\u7684GIS\u6570\u636e\u5904\u7406\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u516b\u3001\u5206\u4eab\u548c\u534f\u4f5c\u5f00\u53d1Python\u811a\u672c<\/p>\n<\/p>\n<p><p>\u5728\u73b0\u4ee3GIS\u5de5\u4f5c\u73af\u5883\u4e2d\uff0c\u5206\u4eab\u548c\u534f\u4f5c\u5f00\u53d1Python\u811a\u672c\u662f\u4fc3\u8fdb\u77e5\u8bc6\u5171\u4eab\u548c\u63d0\u9ad8\u9879\u76ee\u6548\u7387\u7684\u6709\u6548\u624b\u6bb5\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/strong><br \/>\u901a\u8fc7\u4f7f\u7528Git\u7b49\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u60a8\u53ef\u4ee5\u4e0e\u56e2\u961f\u6210\u5458\u5171\u4eabPython\u811a\u672c\uff0c\u5e76\u8ddf\u8e2a\u4ee3\u7801\u7684\u7248\u672c\u53d8\u5316\u3002\u8fd9\u6709\u52a9\u4e8e\u591a\u4eba\u534f\u4f5c\u5f00\u53d1\u548c\u4ee3\u7801\u5408\u5e76\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efa\u548c\u5171\u4eabPython\u5305<\/strong><br \/>\u5982\u679c\u60a8\u5f00\u53d1\u4e86\u591a\u4e2a\u76f8\u5173\u7684Python\u811a\u672c\uff0c\u53ef\u4ee5\u5c06\u5176\u6253\u5305\u6210\u4e00\u4e2aPython\u5305\uff0c\u5e76\u901a\u8fc7PyPI\u7b49\u5e73\u53f0\u5206\u4eab\u3002\u8fd9\u4f7f\u5f97\u5176\u4ed6\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u548c\u4f7f\u7528\u60a8\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e5d\u3001\u4fdd\u6301Python\u811a\u672c\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u6269\u5c55\u6027<\/p>\n<\/p>\n<p><p>\u5728\u5f00\u53d1\u957f\u671f\u9879\u76ee\u65f6\uff0c\u4fdd\u6301Python\u811a\u672c\u7684\u53ef\u7ef4\u62a4\u6027\u548c\u53ef\u6269\u5c55\u6027\u662f\u81f3\u5173\u91cd\u8981\u7684\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u9075\u5faa\u826f\u597d\u7684\u7f16\u7801\u89c4\u8303<\/strong><br \/>\u4f7f\u7528PEP 8\u7b49Python\u7f16\u7801\u89c4\u8303\uff0c\u4fdd\u6301\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u4e00\u81f4\u6027\u3002\u826f\u597d\u7684\u7f16\u7801\u4e60\u60ef\u6709\u52a9\u4e8e\u51cf\u5c11\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\uff0c\u5e76\u63d0\u9ad8\u56e2\u961f\u534f\u4f5c\u7684\u6548\u7387\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b9a\u671f\u66f4\u65b0\u548c\u91cd\u6784\u4ee3\u7801<\/strong><br \/>\u968f\u7740\u9879\u76ee\u9700\u6c42\u7684\u53d8\u5316\uff0c\u5b9a\u671f\u66f4\u65b0\u548c\u91cd\u6784\u4ee3\u7801\u53ef\u4ee5\u786e\u4fddPython\u811a\u672c\u59cb\u7ec8\u6ee1\u8db3\u5f53\u524d\u7684\u4e1a\u52a1\u9700\u6c42\u3002\u540c\u65f6\uff0c\u901a\u8fc7\u91cd\u6784\u4ee3\u7801\uff0c\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u7ed3\u6784\u548c\u6027\u80fd\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u5341\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728ArcGIS\u4e2d\u4fdd\u5b58\u548c\u7ba1\u7406Python\u811a\u672c\u662f\u4e00\u4e2a\u6d89\u53ca\u591a\u4e2a\u6b65\u9aa4\u7684\u8fc7\u7a0b\uff0c\u4ece\u5728\u5185\u7f6ePython\u7a97\u53e3\u4e2d\u7f16\u5199\u4ee3\u7801\uff0c\u5230\u4f7f\u7528\u5916\u90e8IDE\u8fdb\u884c\u5f00\u53d1\uff0c\u518d\u5230\u5c06\u811a\u672c\u96c6\u6210\u5230\u5de5\u4f5c\u6d41\u7a0b\u4e2d\uff0c\u6bcf\u4e00\u6b65\u90fd\u9700\u8981\u4ed4\u7ec6\u89c4\u5212\u548c\u5b9e\u65bd\u3002\u901a\u8fc7\u9075\u5faa\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u60a8\u53ef\u4ee5\u786e\u4fddPython\u811a\u672c\u7684\u9ad8\u6548\u5f00\u53d1\u3001\u7ba1\u7406\u548c\u5e94\u7528\uff0c\u4ece\u800c\u63d0\u9ad8\u6574\u4e2aGIS\u9879\u76ee\u7684\u6210\u529f\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728ArcGIS\u4e2d\u521b\u5efa\u548c\u4fdd\u5b58Python\u811a\u672c\uff1f<\/strong><br \/>\u5728ArcGIS\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528ArcPy\u6a21\u5757\u6765\u7f16\u5199Python\u811a\u672c\u3002\u521b\u5efa\u811a\u672c\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u4efb\u610f\u6587\u672c\u7f16\u8f91\u5668\uff08\u5982Notepad++\u6216PyCharm\uff09\u7f16\u5199\u4ee3\u7801\u3002\u5b8c\u6210\u540e\uff0c\u901a\u8fc7\u201c\u6587\u4ef6\u201d\u83dc\u5355\u9009\u62e9\u201c\u4fdd\u5b58\u201d\u9009\u9879\uff0c\u5c06\u5176\u4fdd\u5b58\u4e3a.py\u6587\u4ef6\u3002\u786e\u4fdd\u5728\u4fdd\u5b58\u65f6\u9009\u62e9\u5408\u9002\u7684\u6587\u4ef6\u8def\u5f84\uff0c\u4ee5\u4fbf\u4e8e\u540e\u7eed\u8bbf\u95ee\u3002<\/p>\n<p><strong>ArcGIS\u652f\u6301\u54ea\u4e9bPython\u7248\u672c\uff1f<\/strong><br \/>ArcGIS Pro\u901a\u5e38\u652f\u6301Python 3.x\u7248\u672c\u3002\u6839\u636e\u60a8\u7684ArcGIS\u7248\u672c\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u786e\u8ba4\u6240\u9700\u7684Python\u73af\u5883\u3002\u5728ArcGIS Desktop\u4e2d\uff0c\u901a\u5e38\u4f7f\u7528Python 2.7\u7248\u672c\u3002\u5982\u679c\u4e0d\u786e\u5b9a\uff0c\u53ef\u4ee5\u5728ArcGIS\u7684\u5e2e\u52a9\u6587\u6863\u4e2d\u67e5\u627e\u76f8\u5173\u4fe1\u606f\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728ArcGIS\u4e2d\u8fd0\u884c\u5df2\u4fdd\u5b58\u7684Python\u811a\u672c\uff1f<\/strong><br \/>\u8fd0\u884c\u5df2\u4fdd\u5b58\u7684Python\u811a\u672c\u53ef\u4ee5\u901a\u8fc7ArcGIS Pro\u7684Python\u7a97\u53e3\uff0c\u6216\u8005\u5728\u547d\u4ee4\u884c\u4e2d\u4f7f\u7528Python\u89e3\u91ca\u5668\u3002\u60a8\u8fd8\u53ef\u4ee5\u5c06\u811a\u672c\u6dfb\u52a0\u5230ArcGIS\u6a21\u578b\u6784\u5efa\u5668\u4e2d\uff0c\u6216\u901a\u8fc7\u81ea\u5b9a\u4e49\u5de5\u5177\u7bb1\u8fd0\u884c\u3002\u786e\u4fdd\u5728\u8fd0\u884c\u4e4b\u524d\uff0c\u6240\u6709\u4f9d\u8d56\u7684\u5e93\u548c\u6570\u636e\u8def\u5f84\u90fd\u5df2\u6b63\u786e\u8bbe\u7f6e\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728ArcGIS\u4e2d\u4fdd\u5b58Python\u811a\u672c\u7684\u6838\u5fc3\u6b65\u9aa4\u5305\u62ec\uff1a\u4f7f\u7528ArcGIS\u5185\u7f6e\u7684Python\u7a97\u53e3\u3001\u5c06\u811a\u672c\u5bfc\u51fa\u5230\u5916\u90e8P [&hellip;]","protected":false},"author":3,"featured_media":970281,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970273"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=970273"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970273\/revisions"}],"predecessor-version":[{"id":970284,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/970273\/revisions\/970284"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/970281"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=970273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=970273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=970273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}