{"id":927917,"date":"2024-12-26T16:22:53","date_gmt":"2024-12-26T08:22:53","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/927917.html"},"modified":"2024-12-26T16:22:55","modified_gmt":"2024-12-26T08:22:55","slug":"xcode%e5%a6%82%e4%bd%95%e6%89%a7%e8%a1%8cpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/927917.html","title":{"rendered":"xcode\u5982\u4f55\u6267\u884cpython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25063829\/74ff527d-a1f4-4cc0-9fff-83d78ce9a522.webp\" alt=\"xcode\u5982\u4f55\u6267\u884cpython\" \/><\/p>\n<p><p> \u5f00\u5934\u6bb5\u843d\uff1a\u5728Xcode\u4e2d\u6267\u884cPython\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c<strong>\u5305\u62ec\u4f7f\u7528\u811a\u672c\u7f16\u8f91\u5668\u3001\u96c6\u6210Python\u89e3\u91ca\u5668\u3001\u5229\u7528Xcode\u7684\u5916\u90e8\u6784\u5efa\u5de5\u5177<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u662f\u4f7f\u7528Xcode\u7684\u5916\u90e8\u6784\u5efa\u5de5\u5177\u529f\u80fd\uff0c\u901a\u8fc7\u914d\u7f6e\u6784\u5efa\u9636\u6bb5\u6765\u6267\u884cPython\u811a\u672c\u3002\u8fd9\u79cd\u65b9\u6cd5\u53ef\u4ee5\u8ba9\u4f60\u5728Xcode\u4e2d\u76f4\u63a5\u8fd0\u884cPython\u811a\u672c\uff0c\u800c\u65e0\u9700\u79bb\u5f00IDE\u73af\u5883\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u914d\u7f6eXcode\u4ee5\u4fbf\u6267\u884cPython\u811a\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u5916\u90e8\u6784\u5efa\u5de5\u5177\u6267\u884cPython\u811a\u672c<\/p>\n<\/p>\n<p><p>Xcode\u63d0\u4f9b\u4e86\u4e00\u79cd\u7075\u6d3b\u7684\u65b9\u5f0f\u6765\u6267\u884c\u5916\u90e8\u811a\u672c\uff0c\u5373\u901a\u8fc7\u6784\u5efa\u9636\u6bb5\u3002\u8fd9\u79cd\u65b9\u5f0f\u5141\u8bb8\u4f60\u5728\u9879\u76ee\u6784\u5efa\u8fc7\u7a0b\u4e2d\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7684\u811a\u672c\u6b65\u9aa4\uff0c\u5305\u62ecPython\u811a\u672c\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u521b\u5efaPython\u811a\u672c<\/strong><br \/>\u9996\u5148\uff0c\u4f60\u9700\u8981\u7f16\u5199\u4e00\u4e2aPython\u811a\u672c\u5e76\u5c06\u5176\u4fdd\u5b58\u5230\u9879\u76ee\u76ee\u5f55\u4e2d\u3002\u786e\u4fdd\u811a\u672c\u5177\u6709\u53ef\u6267\u884c\u6743\u9650\uff0c\u4ee5\u4fbfXcode\u53ef\u4ee5\u8fd0\u884c\u5b83\u3002\u4f60\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u4f7f\u7528<code>chmod +x script.py<\/code>\u547d\u4ee4\u6765\u8bbe\u7f6e\u811a\u672c\u7684\u53ef\u6267\u884c\u6743\u9650\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6eXcode\u6784\u5efa\u9636\u6bb5<\/strong><br \/>\u6253\u5f00Xcode\u9879\u76ee\uff0c\u5bfc\u822a\u5230\u201c\u9879\u76ee\u8bbe\u7f6e\u201d\u754c\u9762\u3002\u9009\u62e9\u201cBuild Phases\u201d\u9009\u9879\u5361\uff0c\u70b9\u51fb\u201c+\u201d\u6309\u94ae\u6dfb\u52a0\u4e00\u4e2a\u65b0\u7684\u6784\u5efa\u9636\u6bb5\uff0c\u9009\u62e9\u201cNew Run Script Phase\u201d\u3002\u5728\u65b0\u521b\u5efa\u7684\u811a\u672c\u6846\u4e2d\u8f93\u5165\u6267\u884cPython\u811a\u672c\u7684\u547d\u4ee4\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">\/usr\/bin\/python3 path\/to\/your\/script.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u786e\u4fdd\u5728\u6bcf\u6b21\u6784\u5efa\u65f6\uff0cXcode\u90fd\u4f1a\u6267\u884c\u8be5Python\u811a\u672c\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u9a8c\u8bc1\u6267\u884c\u7ed3\u679c<\/strong><br \/>\u901a\u8fc7\u6784\u5efa\u9879\u76ee\uff0c\u9a8c\u8bc1Python\u811a\u672c\u662f\u5426\u6b63\u786e\u6267\u884c\u3002\u4f60\u53ef\u4ee5\u5728Xcode\u7684\u6784\u5efa\u65e5\u5fd7\u4e2d\u67e5\u770b\u811a\u672c\u7684\u8f93\u51fa\u7ed3\u679c\uff0c\u4ee5\u786e\u4fdd\u4e00\u5207\u6b63\u5e38\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e8c\u3001\u4f7f\u7528Python\u89e3\u91ca\u5668\u96c6\u6210<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u66f4\u590d\u6742\u96c6\u6210\u7684\u9879\u76ee\uff0c\u53ef\u4ee5\u8003\u8651\u5728Xcode\u4e2d\u76f4\u63a5\u5d4c\u5165Python\u89e3\u91ca\u5668\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5728Cocoa\u5e94\u7528\u7a0b\u5e8f\u4e2d\u8c03\u7528Python\u4ee3\u7801\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5Python\u89e3\u91ca\u5668\u5e93<\/strong><br \/>\u4f60\u53ef\u4ee5\u9009\u62e9\u4f7f\u7528\u50cfPython C API\u8fd9\u6837\u7684\u5e93\u6765\u5728Objective-C\u6216Swift\u4ee3\u7801\u4e2d\u8c03\u7528Python\u4ee3\u7801\u3002\u9996\u5148\uff0c\u786e\u4fdd\u4f60\u7684\u9879\u76ee\u80fd\u591f\u8bbf\u95eePython\u89e3\u91ca\u5668\u5e93\uff0c\u901a\u5e38\u4f60\u9700\u8981\u5728\u9879\u76ee\u7684\u6784\u5efa\u8bbe\u7f6e\u4e2d\u914d\u7f6e\u76f8\u5e94\u7684\u5e93\u8def\u5f84\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u7528Python\u4ee3\u7801<\/strong><br \/>\u5728\u9879\u76ee\u4e2d\uff0c\u901a\u8fc7Python C API\uff0c\u4f60\u53ef\u4ee5\u5728Cocoa\u5e94\u7528\u7a0b\u5e8f\u4e2d\u76f4\u63a5\u8c03\u7528Python\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>Py_Initialize()<\/code>\u51fd\u6570\u521d\u59cb\u5316Python\u89e3\u91ca\u5668\uff0c\u7136\u540e\u901a\u8fc7<code>PyRun_SimpleString()<\/code>\u51fd\u6570\u6267\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406Python\u4e0eObjective-C\/Swift\u7684\u4ea4\u4e92<\/strong><br \/>\u5728\u96c6\u6210\u8fc7\u7a0b\u4e2d\uff0c\u786e\u4fdd\u6b63\u786e\u7ba1\u7406\u5185\u5b58\u548c\u5bf9\u8c61\u751f\u547d\u5468\u671f\uff0c\u5c24\u5176\u662f\u5728Python\u4e0eObjective-C\/Swift\u5bf9\u8c61\u4ea4\u4e92\u65f6\u3002\u8fd9\u53ef\u80fd\u9700\u8981\u7406\u89e3Python\u7684\u5185\u5b58\u7ba1\u7406\u673a\u5236\u548c\u5f15\u7528\u8ba1\u6570\u7cfb\u7edf\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e09\u3001\u4f7f\u7528\u811a\u672c\u7f16\u8f91\u5668\u63d2\u4ef6<\/p>\n<\/p>\n<p><p>Xcode\u867d\u7136\u4e3b\u8981\u7528\u4e8e\u5f00\u53d1Cocoa\u548ciOS\u5e94\u7528\u7a0b\u5e8f\uff0c\u4f46\u501f\u52a9\u4e00\u4e9b\u63d2\u4ef6\u6216\u6269\u5c55\uff0c\u53ef\u4ee5\u589e\u5f3a\u5176\u5bf9\u5176\u4ed6\u8bed\u8a00\u7684\u652f\u6301\uff0c\u5305\u62ecPython\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5\u811a\u672c\u7f16\u8f91\u5668\u63d2\u4ef6<\/strong><br \/>\u4e00\u4e9b\u7b2c\u4e09\u65b9\u63d2\u4ef6\u53ef\u4ee5\u8ba9\u4f60\u5728Xcode\u4e2d\u7f16\u8f91\u548c\u8fd0\u884cPython\u811a\u672c\u3002\u641c\u7d22\u5e76\u5b89\u88c5\u9002\u5408\u4f60\u7684\u5f00\u53d1\u9700\u6c42\u7684\u63d2\u4ef6\uff0c\u786e\u4fdd\u5b83\u4eec\u4e0e\u5f53\u524d\u7684Xcode\u7248\u672c\u517c\u5bb9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6e\u63d2\u4ef6\u4ee5\u652f\u6301Python<\/strong><br \/>\u6839\u636e\u63d2\u4ef6\u7684\u6587\u6863\uff0c\u914d\u7f6eXcode\u4ee5\u4fbf\u652f\u6301Python\u811a\u672c\u7684\u7f16\u8f91\u548c\u6267\u884c\u3002\u901a\u5e38\uff0c\u8fd9\u6d89\u53ca\u8bbe\u7f6e\u6587\u4ef6\u7c7b\u578b\u5173\u8054\u548c\u6267\u884c\u73af\u5883\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u6d4b\u8bd5\u548c\u8c03\u8bd5Python\u811a\u672c<\/strong><br \/>\u5728\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5c1d\u8bd5\u5728Xcode\u4e2d\u7f16\u5199\u548c\u6267\u884c\u4e00\u4e2a\u7b80\u5355\u7684Python\u811a\u672c\u3002\u4f7f\u7528\u63d2\u4ef6\u63d0\u4f9b\u7684\u8c03\u8bd5\u529f\u80fd\u6765\u8bc6\u522b\u548c\u89e3\u51b3\u4efb\u4f55\u6f5c\u5728\u7684\u95ee\u9898\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u56db\u3001\u7ed3\u5408Swift\u4e0ePython<\/p>\n<\/p>\n<p><p>\u501f\u52a9Swift\u8bed\u8a00\u7684\u53d1\u5c55\uff0cApple\u4e3a\u5f00\u53d1\u8005\u63d0\u4f9b\u4e86\u4e00\u79cd\u4e0ePython\u8fdb\u884c\u66f4\u7d27\u5bc6\u96c6\u6210\u7684\u65b9\u6cd5\uff0c\u5373\u901a\u8fc7Swift\u7684PythonKit\u5e93\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u9700\u8981\u5728Swift\u5e94\u7528\u7a0b\u5e8f\u4e2d\u8c03\u7528Python\u4ee3\u7801\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5PythonKit\u5e93<\/strong><br \/>\u5728\u4f60\u7684Swift\u9879\u76ee\u4e2d\uff0c\u4f7f\u7528Swift Package Manager\u5b89\u88c5PythonKit\u5e93\u3002\u4f60\u53ef\u4ee5\u5728\u9879\u76ee\u7684Package.swift\u6587\u4ef6\u4e2d\u6dfb\u52a0\u5bf9PythonKit\u7684\u4f9d\u8d56\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8c03\u7528Python\u4ee3\u7801<\/strong><br \/>\u4f7f\u7528PythonKit\u5e93\uff0c\u4f60\u53ef\u4ee5\u5728Swift\u4ee3\u7801\u4e2d\u76f4\u63a5\u8c03\u7528Python\u4ee3\u7801\u3002\u4f8b\u5982\uff0c\u901a\u8fc7PythonKit\u7684<code>Python<\/code>\u7c7b\uff0c\u4f60\u53ef\u4ee5\u5bfc\u5165Python\u6a21\u5757\u5e76\u8c03\u7528Python\u51fd\u6570\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5904\u7406\u6570\u636e\u4ea4\u6362<\/strong><br \/>\u5728Swift\u548cPython\u4e4b\u95f4\u4f20\u9012\u6570\u636e\u65f6\uff0c\u6ce8\u610f\u6570\u636e\u7c7b\u578b\u7684\u517c\u5bb9\u6027\u3002PythonKit\u63d0\u4f9b\u4e86\u4e00\u4e9b\u5de5\u5177\u6765\u7b80\u5316\u6570\u636e\u7c7b\u578b\u7684\u8f6c\u6362\uff0c\u4f46\u4ecd\u9700\u8c28\u614e\u5904\u7406\u590d\u6742\u6570\u636e\u7ed3\u6784\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u4e94\u3001\u4f7f\u7528Jupyter Notebook\u96c6\u6210<\/p>\n<\/p>\n<p><p>\u5bf9\u4e8e\u6570\u636e\u79d1\u5b66\u9879\u76ee\uff0c\u53ef\u80fd\u9700\u8981\u5728Xcode\u4e2d\u96c6\u6210Jupyter Notebook\u73af\u5883\u3002\u8fd9\u79cd\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u9700\u8981\u4ea4\u4e92\u5f0f\u6570\u636e\u5206\u6790\u7684\u573a\u666f\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbe\u7f6eJupyter\u73af\u5883<\/strong><br \/>\u786e\u4fdd\u5728\u7cfb\u7edf\u4e2d\u5b89\u88c5\u4e86Jupyter Notebook\uff0c\u5e76\u80fd\u591f\u5728\u7ec8\u7aef\u4e2d\u6b63\u5e38\u542f\u52a8\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528Anaconda\u6216pip\u6765\u5b89\u88c5Jupyter\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u521b\u5efaJupyter Notebook\u6587\u4ef6<\/strong><br \/>\u5728\u9879\u76ee\u76ee\u5f55\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Jupyter Notebook\u6587\u4ef6\uff0c\u5e76\u7f16\u5199\u9700\u8981\u6267\u884c\u7684Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u901a\u8fc7Xcode\u8c03\u7528Jupyter<\/strong><br \/>\u5728Xcode\u4e2d\uff0c\u901a\u8fc7\u6784\u5efa\u9636\u6bb5\u6216\u811a\u672c\u7f16\u8f91\u5668\u8c03\u7528Jupyter\u547d\u4ee4\u6765\u542f\u52a8Notebook\u670d\u52a1\u5668\uff0c\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00Notebook\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u51e0\u79cd\u65b9\u6cd5\uff0c\u4f60\u53ef\u4ee5\u5728Xcode\u4e2d\u6709\u6548\u5730\u6267\u884cPython\u4ee3\u7801\uff0c\u5e76\u6839\u636e\u9879\u76ee\u9700\u6c42\u9009\u62e9\u6700\u5408\u9002\u7684\u96c6\u6210\u65b9\u5f0f\u3002\u8fd9\u4e0d\u4ec5\u63d0\u5347\u4e86\u5f00\u53d1\u6548\u7387\uff0c\u8fd8\u6269\u5c55\u4e86Xcode\u5728\u8de8\u8bed\u8a00\u9879\u76ee\u4e2d\u7684\u5e94\u7528\u80fd\u529b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5728Xcode\u4e2d\u5982\u4f55\u8bbe\u7f6ePython\u73af\u5883\u4ee5\u4fbf\u6267\u884cPython\u4ee3\u7801\uff1f<\/strong><br \/>\u8981\u5728Xcode\u4e2d\u6267\u884cPython\u4ee3\u7801\uff0c\u60a8\u9700\u8981\u9996\u5148\u786e\u4fdd\u5b89\u88c5\u4e86Python\uff0c\u5e76\u5728Xcode\u4e2d\u914d\u7f6e\u597d\u73af\u5883\u3002\u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165<code>python3 --version<\/code>\u6765\u68c0\u67e5Python\u662f\u5426\u5df2\u5b89\u88c5\u3002\u63a5\u7740\uff0c\u6253\u5f00Xcode\uff0c\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u201c\u547d\u4ee4\u884c\u5de5\u5177\u201d\u9879\u76ee\uff0c\u9009\u62e9C++\u6216C\u4f5c\u4e3a\u8bed\u8a00\u3002\u5728\u9879\u76ee\u8bbe\u7f6e\u4e2d\uff0c\u60a8\u9700\u8981\u4fee\u6539\u8fd0\u884c\u811a\u672c\uff0c\u6307\u5b9aPython\u89e3\u91ca\u5668\u8def\u5f84\uff0c\u4f8b\u5982\u4f7f\u7528<code>\/usr\/bin\/python3<\/code>\u6765\u6267\u884c\u60a8\u7684Python\u811a\u672c\u3002<\/p>\n<p><strong>Xcode\u662f\u5426\u652f\u6301Python\u7684\u8c03\u8bd5\u529f\u80fd\uff1f<\/strong><br \/>\u5c3d\u7ba1Xcode\u4e3b\u8981\u662f\u4e3aC\/C++\u548cSwift\u7b49\u8bed\u8a00\u8bbe\u8ba1\u7684\uff0c\u4f46\u60a8\u53ef\u4ee5\u901a\u8fc7\u4e00\u4e9b\u63d2\u4ef6\u6216\u81ea\u5b9a\u4e49\u914d\u7f6e\u6765\u5b9e\u73b0Python\u4ee3\u7801\u7684\u8c03\u8bd5\u529f\u80fd\u3002\u60a8\u53ef\u4ee5\u5728\u9879\u76ee\u4e2d\u4f7f\u7528<code>print<\/code>\u8bed\u53e5\u6765\u8f93\u51fa\u8c03\u8bd5\u4fe1\u606f\uff0c\u6216\u8005\u7ed3\u5408\u4f7f\u7528Xcode\u7684\u5916\u90e8\u5de5\u5177\u529f\u80fd\u6765\u8c03\u7528\u8c03\u8bd5\u5668\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u529f\u80fd\u53ef\u80fd\u4e0d\u5982\u4e13\u95e8\u7684Python IDE\uff08\u5982PyCharm\uff09\u90a3\u6837\u5168\u9762\u3002<\/p>\n<p><strong>\u4f7f\u7528Xcode\u6267\u884cPython\u811a\u672c\u65f6\u53ef\u80fd\u9047\u5230\u54ea\u4e9b\u5e38\u89c1\u95ee\u9898\uff1f<\/strong><br \/>\u5728Xcode\u4e2d\u6267\u884cPython\u811a\u672c\u65f6\uff0c\u60a8\u53ef\u80fd\u4f1a\u9047\u5230\u51e0\u79cd\u5e38\u89c1\u95ee\u9898\uff0c\u4f8b\u5982\u73af\u5883\u53d8\u91cf\u8bbe\u7f6e\u4e0d\u5f53\u5bfc\u81f4\u65e0\u6cd5\u627e\u5230Python\u89e3\u91ca\u5668\uff0c\u6216\u8005\u811a\u672c\u4e2d\u4f7f\u7528\u7684\u5e93\u672a\u5b89\u88c5\u3002\u786e\u4fdd\u5728\u8fd0\u884c\u4e4b\u524d\uff0c\u6240\u6709\u4f9d\u8d56\u5e93\u90fd\u5df2\u901a\u8fc7<code>pip<\/code>\u5b89\u88c5\u3002\u6b64\u5916\uff0c\u6587\u4ef6\u8def\u5f84\u7684\u9519\u8bef\u4e5f\u53ef\u80fd\u5bfc\u81f4\u65e0\u6cd5\u6b63\u786e\u8bfb\u53d6\u6587\u4ef6\uff0c\u5efa\u8bae\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u6765\u907f\u514d\u6b64\u7c7b\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u5934\u6bb5\u843d\uff1a\u5728Xcode\u4e2d\u6267\u884cPython\u4ee3\u7801\u53ef\u4ee5\u901a\u8fc7\u51e0\u79cd\u65b9\u5f0f\u5b9e\u73b0\uff0c\u5305\u62ec\u4f7f\u7528\u811a\u672c\u7f16\u8f91\u5668\u3001\u96c6\u6210Python\u89e3\u91ca\u5668\u3001 [&hellip;]","protected":false},"author":3,"featured_media":927920,"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\/927917"}],"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=927917"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/927917\/revisions"}],"predecessor-version":[{"id":927923,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/927917\/revisions\/927923"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/927920"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=927917"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=927917"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=927917"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}