{"id":1176838,"date":"2025-01-15T17:50:00","date_gmt":"2025-01-15T09:50:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1176838.html"},"modified":"2025-01-15T17:50:03","modified_gmt":"2025-01-15T09:50:03","slug":"%e5%bc%80%e5%8f%91%e6%9d%bf%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8cpython","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1176838.html","title":{"rendered":"\u5f00\u53d1\u677f\u5982\u4f55\u8fd0\u884cpython"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25111920\/42f86c99-b6aa-4d81-aeb3-032f622571ef.webp\" alt=\"\u5f00\u53d1\u677f\u5982\u4f55\u8fd0\u884cpython\" \/><\/p>\n<p><p> <strong>\u5f00\u53d1\u677f\u8fd0\u884cPython\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u9884\u88c5\u7684\u64cd\u4f5c\u7cfb\u7edf\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u4f7f\u7528IDE\u6216\u7f16\u8bd1\u5668\u3001\u8fde\u63a5\u5916\u90e8\u8bbe\u5907\u3002<\/strong> \u5176\u4e2d\uff0c<strong>\u4f7f\u7528\u9884\u88c5\u7684\u64cd\u4f5c\u7cfb\u7edf<\/strong>\u662f\u6700\u5e38\u89c1\u7684\u65b9\u6cd5\u4e4b\u4e00\u3002\u8bb8\u591a\u5f00\u53d1\u677f\uff0c\u4f8b\u5982Raspberry Pi\uff0c\u901a\u5e38\u9884\u88c5\u4e86\u4e00\u4e2a\u517c\u5bb9Python\u7684\u64cd\u4f5c\u7cfb\u7edf\uff08\u5982Raspberry Pi OS\uff09\u3002\u7528\u6237\u53ea\u9700\u542f\u52a8\u5f00\u53d1\u677f\u5e76\u6253\u5f00\u7ec8\u7aef\uff0c\u5c31\u53ef\u4ee5\u7acb\u5373\u5f00\u59cb\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u8981\u8be6\u7ec6\u63cf\u8ff0<strong>\u4f7f\u7528\u9884\u88c5\u7684\u64cd\u4f5c\u7cfb\u7edf<\/strong>\uff0c\u6211\u4eec\u53ef\u4ee5\u4ee5Raspberry Pi\u4e3a\u4f8b\u3002Raspberry Pi OS\uff08\u4ee5\u524d\u79f0\u4e3aRaspbian\uff09\u662f\u4e00\u4e2a\u57fa\u4e8eDebian\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u4e13\u4e3aRaspberry Pi\u786c\u4ef6\u8bbe\u8ba1\u3002\u5b83\u9884\u88c5\u4e86Python\u89e3\u91ca\u5668\u548c\u8bb8\u591a\u6709\u7528\u7684\u5f00\u53d1\u5de5\u5177\uff0c\u4f7f\u5f97\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7SSH\u8fdc\u7a0b\u8bbf\u95eeRaspberry Pi\uff0c\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8fde\u63a5\u663e\u793a\u5668\u3001\u952e\u76d8\u548c\u9f20\u6807\u8fdb\u884c\u64cd\u4f5c\u3002Python\u4ee3\u7801\u53ef\u4ee5\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\uff0c\u6216\u4f7f\u7528\u9884\u88c5\u7684Python IDE\uff08\u5982Thonny\uff09\u7f16\u5199\u548c\u8c03\u8bd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u4f7f\u7528\u9884\u88c5\u7684\u64cd\u4f5c\u7cfb\u7edf<\/p>\n<\/p>\n<p><p>Raspberry Pi OS\u662fRaspberry Pi\u57fa\u91d1\u4f1a\u5b98\u65b9\u63a8\u8350\u7684\u64cd\u4f5c\u7cfb\u7edf\uff0c\u9884\u88c5\u4e86Python\u89e3\u91ca\u5668\u548c\u4e00\u4e9b\u5e38\u7528\u7684\u5f00\u53d1\u5de5\u5177\u3002\u7528\u6237\u53ea\u9700\u5c06\u64cd\u4f5c\u7cfb\u7edf\u955c\u50cf\u5199\u5165SD\u5361\u5e76\u63d2\u5165Raspberry Pi\uff0c\u5373\u53ef\u542f\u52a8\u8bbe\u5907\u5e76\u5f00\u59cb\u4f7f\u7528Python\u3002<\/p>\n<\/p>\n<ol>\n<li>\u4e0b\u8f7d\u548c\u5b89\u88c5Raspberry Pi OS<\/li>\n<\/ol>\n<p><p>\u9996\u5148\uff0c\u8bbf\u95eeRaspberry Pi\u5b98\u65b9\u7f51\u7ad9\u5e76\u4e0b\u8f7d\u6700\u65b0\u7684Raspberry Pi OS\u955c\u50cf\u6587\u4ef6\u3002\u7136\u540e\uff0c\u4f7f\u7528\u5de5\u5177\uff08\u5982Etcher\u6216Raspberry Pi Imager\uff09\u5c06\u955c\u50cf\u6587\u4ef6\u5199\u5165SD\u5361\u3002\u5c06SD\u5361\u63d2\u5165Raspberry Pi\uff0c\u5e76\u8fde\u63a5\u7535\u6e90\u3001\u663e\u793a\u5668\u3001\u952e\u76d8\u548c\u9f20\u6807\u3002\u542f\u52a8\u8bbe\u5907\u540e\uff0c\u6309\u7167\u5c4f\u5e55\u4e0a\u7684\u6307\u793a\u5b8c\u6210\u521d\u59cb\u8bbe\u7f6e\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u4f7f\u7528Python\u89e3\u91ca\u5668<\/li>\n<\/ol>\n<p><p>Raspberry Pi OS\u9884\u88c5\u4e86Python 3.x\u3002\u7528\u6237\u53ef\u4ee5\u6253\u5f00\u7ec8\u7aef\uff0c\u5e76\u8f93\u5165<code>python3<\/code>\u547d\u4ee4\u542f\u52a8Python\u89e3\u91ca\u5668\u3002\u5728\u89e3\u91ca\u5668\u4e2d\uff0c\u53ef\u4ee5\u76f4\u63a5\u7f16\u5199\u548c\u6267\u884cPython\u4ee3\u7801\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, Raspberry Pi!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8f93\u5165\u4ee3\u7801\u5e76\u6309Enter\u952e\uff0c\u89e3\u91ca\u5668\u5c06\u7acb\u5373\u6267\u884c\u4ee3\u7801\u5e76\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li>\u4f7f\u7528Python IDE<\/li>\n<\/ol>\n<p><p>Raspberry Pi OS\u4e5f\u9884\u88c5\u4e86Thonny\u7b49Python IDE\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u83dc\u5355\u627e\u5230\u5e76\u6253\u5f00Thonny\uff0c\u7136\u540e\u5728IDE\u4e2d\u7f16\u5199\u3001\u8c03\u8bd5\u548c\u8fd0\u884cPython\u4ee3\u7801\u3002Thonny\u5177\u6709\u53cb\u597d\u7684\u7528\u6237\u754c\u9762\u548c\u8c03\u8bd5\u529f\u80fd\uff0c\u975e\u5e38\u9002\u5408\u521d\u5b66\u8005\u4f7f\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u5982\u679c\u5f00\u53d1\u677f\u4e0a\u6ca1\u6709\u9884\u88c5Python\u89e3\u91ca\u5668\uff0c\u7528\u6237\u53ef\u4ee5\u624b\u52a8\u5b89\u88c5\u3002\u4ee5\u4e0b\u662f\u4e0d\u540c\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5Python\u89e3\u91ca\u5668\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5Python\u89e3\u91ca\u5668\uff08\u901a\u7528\u65b9\u6cd5\uff09<\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u5927\u591a\u6570\u57fa\u4e8eLinux\u7684\u5f00\u53d1\u677f\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff08\u5982apt\u3001yum\u6216pacman\uff09\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002\u4f8b\u5982\uff0c\u5728Debian\u6216Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>python3<\/code>\u547d\u4ee4\u542f\u52a8Python\u89e3\u91ca\u5668\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5b89\u88c5Python\u89e3\u91ca\u5668\uff08\u7279\u6b8a\u786c\u4ef6\uff09<\/li>\n<\/ol>\n<p><p>\u67d0\u4e9b\u5f00\u53d1\u677f\u53ef\u80fd\u9700\u8981\u7279\u5b9a\u7684\u65b9\u6cd5\u6765\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002\u4f8b\u5982\uff0cMicroPython\u662f\u4e00\u79cd\u4e13\u95e8\u4e3a\u5d4c\u5165\u5f0f\u7cfb\u7edf\u8bbe\u8ba1\u7684Python\u89e3\u91ca\u5668\uff0c\u9002\u7528\u4e8eESP8266\u3001ESP32\u548cSTM32\u7b49\u5f00\u53d1\u677f\u3002\u7528\u6237\u53ef\u4ee5\u4eceMicroPython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u56fa\u4ef6\uff0c\u5e76\u6309\u7167\u8bf4\u660e\u5c06\u5176\u5237\u5165\u5f00\u53d1\u677f\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528IDE\u6216\u7f16\u8bd1\u5668<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4f7f\u7528\u7ec8\u7aef\u6216\u9884\u88c5\u7684IDE\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u5728\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5\u5176\u4ed6Python\u5f00\u53d1\u73af\u5883\uff0c\u5982VS Code\u6216PyCharm\u3002<\/p>\n<\/p>\n<ol>\n<li>\u5b89\u88c5VS Code<\/li>\n<\/ol>\n<p><p>VS Code\u662f\u4e00\u6b3e\u6d41\u884c\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5305\u62ecPython\u3002\u7528\u6237\u53ef\u4ee5\u5728\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5VS Code\uff0c\u5e76\u5b89\u88c5Python\u6269\u5c55\uff0c\u4ee5\u4fbf\u7f16\u5199\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u5728Debian\u6216Ubuntu\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5VS Code\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo apt update<\/p>\n<p>sudo apt install code<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00VS Code\u5e76\u5b89\u88c5Python\u6269\u5c55\u3002\u7136\u540e\uff0c\u53ef\u4ee5\u5728VS Code\u4e2d\u521b\u5efa\u65b0\u7684Python\u6587\u4ef6\uff0c\u7f16\u5199\u4ee3\u7801\u5e76\u4f7f\u7528\u5185\u7f6e\u7684\u8c03\u8bd5\u5de5\u5177\u8fd0\u884c\u548c\u8c03\u8bd5\u4ee3\u7801\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li>\u5b89\u88c5PyCharm<\/li>\n<\/ol>\n<p><p>PyCharm\u662f\u53e6\u4e00\u6b3e\u6d41\u884c\u7684Python IDE\uff0c\u5177\u6709\u5f3a\u5927\u7684\u8c03\u8bd5\u548c\u4ee3\u7801\u5206\u6790\u529f\u80fd\u3002\u7528\u6237\u53ef\u4ee5\u5728\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5PyCharm\uff0c\u5e76\u4f7f\u7528\u5176\u9ad8\u7ea7\u529f\u80fd\u8fdb\u884cPython\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u5728\u57fa\u4e8eLinux\u7684\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4eceJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7dPyCharm\u5b89\u88c5\u5305\uff0c\u5e76\u6309\u7167\u8bf4\u660e\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00PyCharm\u5e76\u914d\u7f6ePython\u89e3\u91ca\u5668\uff0c\u5373\u53ef\u5f00\u59cb\u7f16\u5199\u548c\u8c03\u8bd5Python\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u8fde\u63a5\u5916\u90e8\u8bbe\u5907<\/p>\n<\/p>\n<p><p>\u5f00\u53d1\u677f\u901a\u5e38\u7528\u4e8e\u786c\u4ef6\u5f00\u53d1\u548c\u7269\u8054\u7f51\u9879\u76ee\uff0c\u56e0\u6b64\u8fde\u63a5\u548c\u63a7\u5236\u5916\u90e8\u8bbe\u5907\u662fPython\u7f16\u7a0b\u7684\u91cd\u8981\u90e8\u5206\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528Python\u8fde\u63a5\u548c\u63a7\u5236\u5916\u90e8\u8bbe\u5907\u7684\u4e00\u4e9b\u793a\u4f8b\u3002<\/p>\n<\/p>\n<ol>\n<li>GPIO\u7f16\u7a0b<\/li>\n<\/ol>\n<p><p>Raspberry Pi\u7b49\u5f00\u53d1\u677f\u901a\u5e38\u5177\u6709\u901a\u7528\u8f93\u5165\u8f93\u51fa\uff08GPIO\uff09\u5f15\u811a\uff0c\u53ef\u4ee5\u7528\u6765\u8fde\u63a5\u548c\u63a7\u5236\u4f20\u611f\u5668\u3001LED\u3001\u6309\u94ae\u7b49\u5916\u90e8\u8bbe\u5907\u3002\u7528\u6237\u53ef\u4ee5\u4f7f\u7528Python\u7684GPIO\u5e93\uff08\u5982RPi.GPIO\u6216gpiozero\uff09\u7f16\u5199\u4ee3\u7801\uff0c\u63a7\u5236\u8fd9\u4e9b\u8bbe\u5907\u3002<\/p>\n<\/p>\n<p><p>\u4f8b\u5982\uff0c\u4f7f\u7528RPi.GPIO\u5e93\u63a7\u5236LED\u95ea\u70c1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import RPi.GPIO as GPIO<\/p>\n<p>import time<\/p>\n<h2><strong>\u8bbe\u7f6eGPIO\u6a21\u5f0f<\/strong><\/h2>\n<p>GPIO.setmode(GPIO.BCM)<\/p>\n<h2><strong>\u8bbe\u7f6eGPIO\u5f15\u811a<\/strong><\/h2>\n<p>GPIO.setup(18, GPIO.OUT)<\/p>\n<p>try:<\/p>\n<p>    while True:<\/p>\n<p>        GPIO.output(18, GPIO.HIGH)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>        GPIO.output(18, GPIO.LOW)<\/p>\n<p>        time.sleep(1)<\/p>\n<p>except KeyboardInterrupt:<\/p>\n<p>    GPIO.cleanup()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li>I2C\u548cSPI\u901a\u4fe1<\/li>\n<\/ol>\n<p><p>\u5f00\u53d1\u677f\u8fd8\u53ef\u4ee5\u901a\u8fc7I2C\u548cSPI\u7b49\u901a\u4fe1\u534f\u8bae\u4e0e\u5916\u90e8\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\u3002\u4f8b\u5982\uff0c\u4f7f\u7528Python\u7684smbus\u5e93\u4e0eI2C\u8bbe\u5907\u8fdb\u884c\u901a\u4fe1\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import smbus<\/p>\n<h2><strong>\u521d\u59cb\u5316I2C\u603b\u7ebf<\/strong><\/h2>\n<p>bus = smbus.SMBus(1)<\/p>\n<h2><strong>I2C\u8bbe\u5907\u5730\u5740<\/strong><\/h2>\n<p>address = 0x48<\/p>\n<h2><strong>\u4ece\u8bbe\u5907\u8bfb\u53d6\u6570\u636e<\/strong><\/h2>\n<p>data = bus.read_byte_data(address, 0x00)<\/p>\n<p>print(&quot;Data: &quot;, data)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u7528\u6237\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u5f00\u53d1\u677f\u4e0a\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u8fde\u63a5\u548c\u63a7\u5236\u5916\u90e8\u8bbe\u5907\uff0c\u5b9e\u73b0\u5404\u79cd\u786c\u4ef6\u548c\u7269\u8054\u7f51\u9879\u76ee\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5Python\uff1f<\/strong><br \/>\u5728\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5Python\u901a\u5e38\u9700\u8981\u5148\u786e\u8ba4\u5f00\u53d1\u677f\u7684\u64cd\u4f5c\u7cfb\u7edf\u3002\u5927\u591a\u6570\u5f00\u53d1\u677f\u5982\u6811\u8393\u6d3e\u3001Arduino\u7b49\u90fd\u652f\u6301Linux\u7cfb\u7edf\u3002\u53ef\u4ee5\u901a\u8fc7SSH\u8fde\u63a5\u5230\u5f00\u53d1\u677f\uff0c\u7136\u540e\u4f7f\u7528\u5305\u7ba1\u7406\u5668\uff08\u5982apt\u3001yum\u6216pip\uff09\u6765\u5b89\u88c5Python\u3002\u5177\u4f53\u6b65\u9aa4\u5305\u62ec\u66f4\u65b0\u5305\u5217\u8868\u3001\u5b89\u88c5Python\u53ca\u5176\u76f8\u5173\u4f9d\u8d56\u3002<\/p>\n<p><strong>\u4f7f\u7528Python\u5f00\u53d1\u677f\u9700\u8981\u54ea\u4e9b\u57fa\u672c\u77e5\u8bc6\uff1f<\/strong><br \/>\u5728\u4f7f\u7528\u5f00\u53d1\u677f\u8fdb\u884cPython\u7f16\u7a0b\u4e4b\u524d\uff0c\u638c\u63e1\u4e00\u4e9b\u57fa\u7840\u77e5\u8bc6\u662f\u5f88\u6709\u5e2e\u52a9\u7684\u3002\u8fd9\u5305\u62ec\u5bf9Python\u8bed\u6cd5\u7684\u7406\u89e3\u3001\u57fa\u672c\u7684\u7f16\u7a0b\u903b\u8f91\u3001\u4ee5\u53ca\u5982\u4f55\u5728\u5f00\u53d1\u677f\u4e0a\u8fdb\u884c\u6587\u4ef6\u7ba1\u7406\u548c\u7f51\u7edc\u8fde\u63a5\u3002\u6b64\u5916\uff0c\u4e86\u89e3GPIO\uff08\u901a\u7528\u8f93\u5165\u8f93\u51fa\uff09\u548c\u5176\u4ed6\u786c\u4ef6\u63a5\u53e3\u7684\u4f7f\u7528\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u4e0e\u5916\u90e8\u8bbe\u5907\u8fdb\u884c\u4ea4\u4e92\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728\u5f00\u53d1\u677f\u4e0a\u8fd0\u884cPython\u811a\u672c\uff1f<\/strong><br \/>\u4e00\u65e6\u5728\u5f00\u53d1\u677f\u4e0a\u5b89\u88c5\u4e86Python\uff0c\u8fd0\u884cPython\u811a\u672c\u975e\u5e38\u7b80\u5355\u3002\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8fdb\u5165\u811a\u672c\u6240\u5728\u7684\u76ee\u5f55\uff0c\u5e76\u4f7f\u7528\u547d\u4ee4<code>python your_script.py<\/code>\u6765\u6267\u884c\u811a\u672c\u3002\u5982\u679c\u5e0c\u671b\u5728\u5f00\u53d1\u677f\u4e0a\u81ea\u52a8\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u53ef\u4ee5\u5c06\u5176\u6dfb\u52a0\u5230\u542f\u52a8\u9879\u4e2d\uff0c\u786e\u4fdd\u6bcf\u6b21\u5f00\u673a\u65f6\u90fd\u80fd\u81ea\u52a8\u6267\u884c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5f00\u53d1\u677f\u8fd0\u884cPython\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u4f7f\u7528\u9884\u88c5\u7684\u64cd\u4f5c\u7cfb\u7edf\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u4f7f\u7528IDE\u6216\u7f16\u8bd1\u5668\u3001\u8fde\u63a5\u5916\u90e8\u8bbe\u5907 [&hellip;]","protected":false},"author":3,"featured_media":1176851,"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\/1176838"}],"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=1176838"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1176838\/revisions"}],"predecessor-version":[{"id":1176852,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1176838\/revisions\/1176852"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1176851"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1176838"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1176838"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1176838"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}