{"id":1156087,"date":"2025-01-13T18:11:42","date_gmt":"2025-01-13T10:11:42","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1156087.html"},"modified":"2025-01-13T18:11:44","modified_gmt":"2025-01-13T10:11:44","slug":"notepad-%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8cpython%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1156087.html","title":{"rendered":"notepad \u5982\u4f55\u8fd0\u884cpython\u7a0b\u5e8f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25194620\/7a60551c-69ea-4b72-b4a1-655d16da17cf.webp\" alt=\"notepad \u5982\u4f55\u8fd0\u884cpython\u7a0b\u5e8f\" \/><\/p>\n<p><p> \u8981\u5728Notepad\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u89e3\u91ca\u5668\uff0c\u5e76\u914d\u7f6e\u597d\u4e86\u73af\u5883\u53d8\u91cf\u3002\u4ee5\u4e0b\u662f\u4e3b\u8981\u6b65\u9aa4\uff1a<strong>\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u7f16\u5199Python\u4ee3\u7801\u3001\u4fdd\u5b58\u6587\u4ef6\u3001\u5728\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6<\/strong>\u3002\u8be6\u7ec6\u63cf\u8ff0\u5b89\u88c5Python\u89e3\u91ca\u5668\uff1a\u9996\u5148\uff0c\u4f60\u9700\u8981\u4ecePython\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u6700\u65b0\u7684Python\u7248\u672c\u5e76\u8fdb\u884c\u5b89\u88c5\u3002\u786e\u4fdd\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9009\u4e2d\u4e86\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>\u8981\u5728Notepad\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u9996\u5148\u9700\u8981\u5b89\u88c5Python\u89e3\u91ca\u5668\u3002Python\u662f\u4e00\u79cd\u975e\u5e38\u6d41\u884c\u7684\u7f16\u7a0b\u8bed\u8a00\uff0c\u5177\u6709\u7b80\u5355\u6613\u5b66\u3001\u529f\u80fd\u5f3a\u5927\u3001\u793e\u533a\u652f\u6301\u5e7f\u6cdb\u7b49\u4f18\u70b9\u3002\u4f60\u53ef\u4ee5\u4ecePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%E4%B8%8B%E8%BD%BD%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84Python%E3%80%82\">https:\/\/www.python.org\/\uff09\u4e0b\u8f7d\u6700\u65b0\u7248\u672c\u7684Python\u3002<\/a><\/p>\n<\/p>\n<p><p>1.1\u3001\u4e0b\u8f7dPython<\/p>\n<\/p>\n<p><p>\u8bbf\u95eePython\u5b98\u65b9\u7f51\u7ad9\uff0c\u70b9\u51fb\u201cDownloads\u201d\u9009\u9879\u5361\uff0c\u9009\u62e9\u9002\u5408\u4f60\u64cd\u4f5c\u7cfb\u7edf\u7684Python\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\u3002\u5bf9\u4e8eWindows\u7528\u6237\uff0c\u901a\u5e38\u5efa\u8bae\u4e0b\u8f7d\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u3002\u5bf9\u4e8eMac\u548cLinux\u7528\u6237\uff0c\u4e5f\u53ef\u4ee5\u9009\u62e9\u5bf9\u5e94\u7684\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>1.2\u3001\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e2a\u5b89\u88c5\u9009\u9879\u7a97\u53e3\uff0c\u786e\u4fdd\u52fe\u9009\u201cAdd Python to PATH\u201d\u9009\u9879\uff0c\u8fd9\u6837\u53ef\u4ee5\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u65b9\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\u3002\u7136\u540e\u70b9\u51fb\u201cInstall Now\u201d\u6309\u94ae\uff0c\u7b49\u5f85\u5b89\u88c5\u5b8c\u6210\u3002<\/p>\n<\/p>\n<p><p>1.3\u3001\u9a8c\u8bc1\u5b89\u88c5<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff08Windows\u7528\u6237\u53ef\u4ee5\u6309\u201cWin+R\u201d\u952e\uff0c\u7136\u540e\u8f93\u5165\u201ccmd\u201d\u5e76\u6309\u56de\u8f66\uff09\u3002\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u9a8c\u8bc1Python\u662f\u5426\u5b89\u88c5\u6210\u529f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python --version<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u770b\u5230\u8f93\u51fa\u7c7b\u4f3c\u4e8e\u201cPython 3.x.x\u201d\uff0c\u8bf4\u660ePython\u5df2\u7ecf\u6210\u529f\u5b89\u88c5\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u5b89\u88c5Python\u65f6\uff0c\u901a\u5e38\u4f1a\u81ea\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff0c\u4f46\u6709\u65f6\u9700\u8981\u624b\u52a8\u914d\u7f6e\u3002\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u7684\u76ee\u7684\u662f\u4e3a\u4e86\u5728\u547d\u4ee4\u884c\u4e2d\u53ef\u4ee5\u76f4\u63a5\u8fd0\u884cPython\u547d\u4ee4\uff0c\u800c\u65e0\u9700\u6307\u5b9a\u5b8c\u6574\u7684Python\u8def\u5f84\u3002<\/p>\n<\/p>\n<p><p>2.1\u3001\u68c0\u67e5\u73af\u5883\u53d8\u91cf<\/p>\n<\/p>\n<p><p>\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u68c0\u67e5Python\u8def\u5f84\u662f\u5426\u5df2\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">echo %PATH%<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8f93\u51fa\u7684\u73af\u5883\u53d8\u91cf\u5217\u8868\u4e2d\u67e5\u627ePython\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u4f8b\u5982\u201cC:\\Python39\u201d\u6216\u201cC:\\Users\\YourUsername\\AppData\\Local\\Programs\\Python\\Python39\u201d\u3002\u5982\u679c\u627e\u4e0d\u5230\uff0c\u8bf4\u660e\u9700\u8981\u624b\u52a8\u6dfb\u52a0\u3002<\/p>\n<\/p>\n<p><p>2.2\u3001\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff08Windows\uff09<\/p>\n<\/p>\n<p><p>\u6253\u5f00\u201c\u63a7\u5236\u9762\u677f\u201d\uff0c\u9009\u62e9\u201c\u7cfb\u7edf\u548c\u5b89\u5168\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u7cfb\u7edf\u201d\u3002\u70b9\u51fb\u5de6\u4fa7\u7684\u201c\u9ad8\u7ea7\u7cfb\u7edf\u8bbe\u7f6e\u201d\uff0c\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u9009\u62e9\u201c\u73af\u5883\u53d8\u91cf\u201d\u3002\u5728\u201c\u7cfb\u7edf\u53d8\u91cf\u201d\u90e8\u5206\uff0c\u627e\u5230\u5e76\u9009\u62e9\u201cPath\u201d\u53d8\u91cf\uff0c\u70b9\u51fb\u201c\u7f16\u8f91\u201d\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u70b9\u51fb\u201c\u65b0\u5efa\u201d\uff0c\u7136\u540e\u8f93\u5165Python\u7684\u5b89\u88c5\u8def\u5f84\uff0c\u6700\u540e\u70b9\u51fb\u201c\u786e\u5b9a\u201d\u4fdd\u5b58\u3002<\/p>\n<\/p>\n<p><p>2.3\u3001\u624b\u52a8\u914d\u7f6e\u73af\u5883\u53d8\u91cf\uff08Mac\u548cLinux\uff09<\/p>\n<\/p>\n<p><p>\u5728Mac\u548cLinux\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u7f16\u8f91<code>.bashrc<\/code>\u6216<code>.bash_profile<\/code>\u6587\u4ef6\u6765\u6dfb\u52a0Python\u8def\u5f84\u3002\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6253\u5f00\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">nano ~\/.bashrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">export PATH=&quot;\/usr\/local\/bin\/python3:$PATH&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u5e76\u9000\u51fa\u7f16\u8f91\u5668\uff0c\u7136\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u4f7f\u66f4\u6539\u751f\u6548\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">source ~\/.bashrc<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u7f16\u5199Python\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u5b89\u88c5\u548c\u914d\u7f6e\u5b8c\u6210\u540e\uff0c\u5c31\u53ef\u4ee5\u5728Notepad\u4e2d\u7f16\u5199Python\u4ee3\u7801\u4e86\u3002Notepad\u662f\u4e00\u4e2a\u7b80\u5355\u7684\u6587\u672c\u7f16\u8f91\u5668\uff0c\u9002\u5408\u7f16\u5199\u7b80\u5355\u7684Python\u811a\u672c\u3002\u4ee5\u4e0b\u662f\u4e00\u4e2a\u7b80\u5355\u7684Python\u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># hello.py<\/p>\n<p>print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5c06\u4e0a\u8ff0\u4ee3\u7801\u590d\u5236\u5230Notepad\u4e2d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u4fdd\u5b58\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u5728Notepad\u4e2d\u7f16\u5199\u597d\u4ee3\u7801\u540e\uff0c\u9700\u8981\u5c06\u6587\u4ef6\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6269\u5c55\u540d\u7684\u6587\u4ef6\u3002\u70b9\u51fb\u201c\u6587\u4ef6\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u53e6\u5b58\u4e3a\u201d\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\uff0c\u9009\u62e9\u4fdd\u5b58\u4f4d\u7f6e\uff0c\u5e76\u5c06\u6587\u4ef6\u540d\u8bbe\u7f6e\u4e3a\u201chello.py\u201d\uff0c\u786e\u4fdd\u6587\u4ef6\u7c7b\u578b\u9009\u62e9\u4e3a\u201c\u6240\u6709\u6587\u4ef6\u201d\uff0c\u7136\u540e\u70b9\u51fb\u201c\u4fdd\u5b58\u201d\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u5728\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u4fdd\u5b58\u597dPython\u6587\u4ef6\u540e\uff0c\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u5bfc\u822a\u5230\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\u3002\u53ef\u4ee5\u4f7f\u7528<code>cd<\/code>\u547d\u4ee4\u6765\u6539\u53d8\u5f53\u524d\u76ee\u5f55\uff0c\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">cd C:\\path\\to\\your\\file<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884cPython\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5982\u679c\u4e00\u5207\u987a\u5229\uff0c\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u8f93\u51fa\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<p><p>\u516d\u3001\u4f7f\u7528Notepad++\u548c\u5176\u4ed6\u7f16\u8f91\u5668<\/p>\n<\/p>\n<p><p>\u867d\u7136Notepad\u53ef\u4ee5\u7528\u6765\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\uff0c\u4f46\u5b83\u7f3a\u4e4f\u8bed\u6cd5\u9ad8\u4eae\u3001\u81ea\u52a8\u5b8c\u6210\u7b49\u529f\u80fd\u3002\u5efa\u8bae\u4f7f\u7528\u66f4\u4e13\u4e1a\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5982Notepad++\u3001Visual Studio Code\u3001PyCharm\u7b49\u3002\u8fd9\u4e9b\u7f16\u8f91\u5668\u4e0d\u4ec5\u652f\u6301Python\u4ee3\u7801\u7684\u7f16\u5199\uff0c\u8fd8\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5f00\u53d1\u5de5\u5177\u548c\u63d2\u4ef6\uff0c\u63d0\u5347\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n<\/p>\n<p><p>6.1\u3001\u5b89\u88c5Notepad++<\/p>\n<\/p>\n<p><p>\u8bbf\u95eeNotepad++\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/notepad-plus-plus.org\/%EF%BC%89%EF%BC%8C%E4%B8%8B%E8%BD%BD%E5%B9%B6%E5%AE%89%E8%A3%85%E6%9C%80%E6%96%B0%E7%89%88%E6%9C%AC%E7%9A%84Notepad++%E3%80%82%E5%AE%89%E8%A3%85%E5%AE%8C%E6%88%90%E5%90%8E%EF%BC%8C%E6%89%93%E5%BC%80Notepad++%EF%BC%8C%E4%BD%A0%E4%BC%9A%E5%8F%91%E7%8E%B0%E5%AE%83%E6%AF%94%E6%99%AE%E9%80%9A%E7%9A%84Notepad%E6%9B%B4%E5%BC%BA%E5%A4%A7%EF%BC%8C%E6%94%AF%E6%8C%81%E8%AF%AD%E6%B3%95%E9%AB%98%E4%BA%AE%E3%80%81%E4%BB%A3%E7%A0%81%E6%8A%98%E5%8F%A0%E7%AD%89%E5%8A%9F%E8%83%BD%E3%80%82\">https:\/\/notepad-plus-plus.org\/\uff09\uff0c\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Notepad++\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00Notepad++\uff0c\u4f60\u4f1a\u53d1\u73b0\u5b83\u6bd4\u666e\u901a\u7684Notepad\u66f4\u5f3a\u5927\uff0c\u652f\u6301\u8bed\u6cd5\u9ad8\u4eae\u3001\u4ee3\u7801\u6298\u53e0\u7b49\u529f\u80fd\u3002<\/a><\/p>\n<\/p>\n<p><p>6.2\u3001\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u5728Notepad++\u4e2d\u7f16\u5199Python\u4ee3\u7801\u4e0e\u5728\u666e\u901aNotepad\u4e2d\u7c7b\u4f3c\u3002\u7f16\u5199\u597d\u4ee3\u7801\u540e\uff0c\u4fdd\u5b58\u4e3a<code>.py<\/code>\u6587\u4ef6\u3002\u7136\u540e\u6253\u5f00\u547d\u4ee4\u884c\u7a97\u53e3\uff0c\u5bfc\u822a\u5230\u6587\u4ef6\u6240\u5728\u76ee\u5f55\uff0c\u8fd0\u884cPython\u6587\u4ef6\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>6.3\u3001\u5176\u4ed6\u7f16\u8f91\u5668<\/p>\n<\/p>\n<p><p>\u9664\u4e86Notepad++\uff0c\u8fd8\u6709\u8bb8\u591a\u4f18\u79c0\u7684\u4ee3\u7801\u7f16\u8f91\u5668\u548cIDE\uff08\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff09\u652f\u6301Python\u5f00\u53d1\uff1a<\/p>\n<\/p>\n<ul>\n<li>Visual Studio Code\uff1a\u5fae\u8f6f\u63a8\u51fa\u7684\u4e00\u6b3e\u514d\u8d39\u5f00\u6e90\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u6709\u4e30\u5bcc\u7684\u63d2\u4ef6\u751f\u6001\u7cfb\u7edf\u3002<\/li>\n<li>PyCharm\uff1aJetBr<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>ns\u5f00\u53d1\u7684\u4e13\u4e1aPython IDE\uff0c\u63d0\u4f9b\u5f3a\u5927\u7684\u4ee3\u7801\u5206\u6790\u3001\u8c03\u8bd5\u548c\u6d4b\u8bd5\u5de5\u5177\u3002<\/li>\n<li>Sublime Text\uff1a\u4e00\u6b3e\u8f7b\u91cf\u7ea7\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u652f\u6301\u591a\u79cd\u7f16\u7a0b\u8bed\u8a00\uff0c\u5177\u6709\u9ad8\u6548\u7684\u6587\u672c\u5904\u7406\u80fd\u529b\u3002<\/li>\n<\/ul>\n<p><p>\u4e03\u3001\u8c03\u8bd5Python\u4ee3\u7801<\/p>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u548c\u8fd0\u884cPython\u4ee3\u7801\u65f6\uff0c\u96be\u514d\u4f1a\u9047\u5230\u9519\u8bef\u548c\u95ee\u9898\u3002\u8c03\u8bd5\u662f\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u975e\u5e38\u91cd\u8981\u7684\u4e00\u90e8\u5206\uff0c\u80fd\u591f\u5e2e\u52a9\u4f60\u627e\u5230\u5e76\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><p>7.1\u3001\u4f7f\u7528print\u8bed\u53e5<\/p>\n<\/p>\n<p><p>\u6700\u7b80\u5355\u7684\u8c03\u8bd5\u65b9\u6cd5\u662f\u5728\u4ee3\u7801\u4e2d\u63d2\u5165<code>print<\/code>\u8bed\u53e5\uff0c\u8f93\u51fa\u53d8\u91cf\u7684\u503c\u548c\u7a0b\u5e8f\u7684\u6267\u884c\u72b6\u6001\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># debug_example.py<\/p>\n<p>def add(a, b):<\/p>\n<p>    result = a + b<\/p>\n<p>    print(f&quot;a: {a}, b: {b}, result: {result}&quot;)<\/p>\n<p>    return result<\/p>\n<p>sum = add(3, 5)<\/p>\n<p>print(f&quot;Sum: {sum}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u5728\u5173\u952e\u4f4d\u7f6e\u63d2\u5165<code>print<\/code>\u8bed\u53e5\uff0c\u53ef\u4ee5\u67e5\u770b\u53d8\u91cf\u7684\u503c\uff0c\u5e2e\u52a9\u4f60\u627e\u5230\u95ee\u9898\u6240\u5728\u3002<\/p>\n<\/p>\n<p><p>7.2\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/p>\n<\/p>\n<p><p>\u66f4\u9ad8\u7ea7\u7684\u8c03\u8bd5\u65b9\u6cd5\u662f\u4f7f\u7528\u4ee3\u7801\u7f16\u8f91\u5668\u6216IDE\u81ea\u5e26\u7684\u8c03\u8bd5\u5de5\u5177\u3002\u4f8b\u5982\uff0cVisual Studio Code\u548cPyCharm\u90fd\u63d0\u4f9b\u4e86\u5f3a\u5927\u7684\u8c03\u8bd5\u529f\u80fd\uff0c\u652f\u6301\u8bbe\u7f6e\u65ad\u70b9\u3001\u9010\u884c\u6267\u884c\u4ee3\u7801\u3001\u67e5\u770b\u53d8\u91cf\u503c\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u5728Visual Studio Code\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5Python\u6269\u5c55\uff0c\u542f\u7528\u8c03\u8bd5\u529f\u80fd\u3002\u8bbe\u7f6e\u597d\u65ad\u70b9\u540e\uff0c\u70b9\u51fb\u8c03\u8bd5\u6309\u94ae\uff0c\u7a0b\u5e8f\u4f1a\u5728\u65ad\u70b9\u5904\u6682\u505c\uff0c\u5141\u8bb8\u4f60\u9010\u884c\u67e5\u770b\u4ee3\u7801\u6267\u884c\u60c5\u51b5\u3002<\/p>\n<\/p>\n<p><p>7.3\u3001\u4f7f\u7528pdb\u6a21\u5757<\/p>\n<\/p>\n<p><p>Python\u81ea\u5e26\u4e86\u4e00\u4e2a\u8c03\u8bd5\u5668\u6a21\u5757<code>pdb<\/code>\uff0c\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8fdb\u884c\u8c03\u8bd5\u3002\u5728\u4ee3\u7801\u4e2d\u63d2\u5165\u4ee5\u4e0b\u884c\uff0c\u53ef\u4ee5\u542f\u52a8\u8c03\u8bd5\u5668\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pdb; pdb.set_trace()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd0\u884c\u7a0b\u5e8f\u65f6\uff0c\u8c03\u8bd5\u5668\u4f1a\u5728\u8fd9\u4e00\u884c\u6682\u505c\uff0c\u4f60\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u8c03\u8bd5\u547d\u4ee4\uff0c\u5982\u67e5\u770b\u53d8\u91cf\u503c\u3001\u9010\u884c\u6267\u884c\u4ee3\u7801\u7b49\u3002<\/p>\n<\/p>\n<p><p>\u516b\u3001\u63d0\u9ad8Python\u7f16\u7a0b\u6280\u5de7<\/p>\n<\/p>\n<p><p>\u5728\u638c\u63e1\u4e86\u57fa\u672c\u7684Python\u8fd0\u884c\u65b9\u6cd5\u540e\uff0c\u4f60\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63d0\u9ad8\u81ea\u5df1\u7684\u7f16\u7a0b\u6280\u5de7\uff0c\u7f16\u5199\u66f4\u9ad8\u6548\u3001\u66f4\u4f18\u96c5\u7684\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>8.1\u3001\u5b66\u4e60Python\u6807\u51c6\u5e93<\/p>\n<\/p>\n<p><p>Python\u6807\u51c6\u5e93\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6a21\u5757\u548c\u51fd\u6570\uff0c\u6db5\u76d6\u4e86\u6587\u4ef6\u64cd\u4f5c\u3001\u7f51\u7edc\u7f16\u7a0b\u3001\u6570\u636e\u5904\u7406\u7b49\u591a\u4e2a\u65b9\u9762\u3002\u719f\u6089\u6807\u51c6\u5e93\u7684\u4f7f\u7528\uff0c\u53ef\u4ee5\u5927\u5927\u63d0\u9ad8\u7f16\u7a0b\u6548\u7387\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u4f7f\u7528<code>os<\/code>\u6a21\u5757\u8fdb\u884c\u6587\u4ef6\u548c\u76ee\u5f55\u64cd\u4f5c\uff0c\u4f7f\u7528<code>json<\/code>\u6a21\u5757\u5904\u7406JSON\u6570\u636e\u3002<\/p>\n<\/p>\n<p><p>8.2\u3001\u5b66\u4e60\u7b2c\u4e09\u65b9\u5e93<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u6807\u51c6\u5e93\uff0cPython\u8fd8\u6709\u5e9e\u5927\u7684\u7b2c\u4e09\u65b9\u5e93\u751f\u6001\u7cfb\u7edf\uff0c\u6db5\u76d6\u4e86\u5404\u79cd\u5e94\u7528\u9886\u57df\u3002\u901a\u8fc7\u5b89\u88c5\u548c\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u5feb\u901f\u5b9e\u73b0\u590d\u6742\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>requests<\/code>\u5e93\u8fdb\u884cHTTP\u8bf7\u6c42\uff0c\u4f7f\u7528<code>pandas<\/code>\u5e93\u8fdb\u884c\u6570\u636e\u5206\u6790\uff0c\u4f7f\u7528<code>matplotlib<\/code>\u5e93\u8fdb\u884c\u6570\u636e\u53ef\u89c6\u5316\u3002<\/p>\n<\/p>\n<p><p>8.3\u3001\u9075\u5faaPEP 8\u7f16\u7801\u89c4\u8303<\/p>\n<\/p>\n<p><p>PEP 8\u662fPython\u7684\u7f16\u7801\u89c4\u8303\uff0c\u65e8\u5728\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u4e00\u81f4\u6027\u3002\u9075\u5faaPEP 8\u89c4\u8303\uff0c\u53ef\u4ee5\u4f7f\u4f60\u7684\u4ee3\u7801\u66f4\u6613\u4e8e\u9605\u8bfb\u548c\u7ef4\u62a4\u3002\u53ef\u4ee5\u4f7f\u7528\u4ee3\u7801\u683c\u5f0f\u5316\u5de5\u5177\uff0c\u5982<code>autopep8<\/code>\u548c<code>black<\/code>\uff0c\u81ea\u52a8\u5c06\u4ee3\u7801\u683c\u5f0f\u5316\u4e3a\u7b26\u5408PEP 8\u89c4\u8303\u7684\u6837\u5f0f\u3002<\/p>\n<\/p>\n<p><p>8.4\u3001\u7f16\u5199\u5355\u5143\u6d4b\u8bd5<\/p>\n<\/p>\n<p><p>\u7f16\u5199\u5355\u5143\u6d4b\u8bd5\u53ef\u4ee5\u5e2e\u52a9\u4f60\u9a8c\u8bc1\u4ee3\u7801\u7684\u6b63\u786e\u6027\uff0c\u9632\u6b62\u5f15\u5165\u65b0\u7684\u9519\u8bef\u3002Python\u81ea\u5e26\u4e86<code>unittest<\/code>\u6a21\u5757\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u7f16\u5199\u548c\u8fd0\u884c\u6d4b\u8bd5\u7528\u4f8b\u3002\u901a\u8fc7\u7f16\u5199\u6d4b\u8bd5\u7528\u4f8b\uff0c\u53ef\u4ee5\u786e\u4fdd\u4ee3\u7801\u5728\u4fee\u6539\u548c\u91cd\u6784\u8fc7\u7a0b\u4e2d\u4fdd\u6301\u7a33\u5b9a\u3002<\/p>\n<\/p>\n<p><p>\u4e5d\u3001<a href=\"https:\/\/docs.pingcode.com\/blog\/project-management\/23316.html\" target=\"_blank\">\u9879\u76ee\u7ba1\u7406<\/a>\u548c\u7248\u672c\u63a7\u5236<\/p>\n<\/p>\n<p><p>\u5728\u7f16\u5199Python\u4ee3\u7801\u7684\u8fc7\u7a0b\u4e2d\uff0c\u826f\u597d\u7684\u9879\u76ee\u7ba1\u7406\u548c\u7248\u672c\u63a7\u5236\u53ef\u4ee5\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u7ec4\u7ec7\u4ee3\u7801\uff0c\u8ddf\u8e2a\u4ee3\u7801\u7684\u53d8\u5316\uff0c\u534f\u4f5c\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>9.1\u3001\u4f7f\u7528\u865a\u62df\u73af\u5883<\/p>\n<\/p>\n<p><p>\u865a\u62df\u73af\u5883\u53ef\u4ee5\u4e3a\u6bcf\u4e2a\u9879\u76ee\u521b\u5efa\u72ec\u7acb\u7684Python\u73af\u5883\uff0c\u907f\u514d\u4e0d\u540c\u9879\u76ee\u4e4b\u95f4\u7684\u4f9d\u8d56\u51b2\u7a81\u3002\u53ef\u4ee5\u4f7f\u7528<code>venv<\/code>\u6a21\u5757\u521b\u5efa\u865a\u62df\u73af\u5883\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python -m venv myenv<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6fc0\u6d3b\u865a\u62df\u73af\u5883\u540e\uff0c\u53ef\u4ee5\u5728\u5176\u4e2d\u5b89\u88c5\u9879\u76ee\u6240\u9700\u7684\u4f9d\u8d56\u5e93\uff0c\u800c\u4e0d\u4f1a\u5f71\u54cd\u5168\u5c40\u73af\u5883\u3002<\/p>\n<\/p>\n<p><p>9.2\u3001\u4f7f\u7528pip\u7ba1\u7406\u4f9d\u8d56<\/p>\n<\/p>\n<p><p><code>pip<\/code>\u662fPython\u7684\u5305\u7ba1\u7406\u5de5\u5177\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5b89\u88c5\u548c\u7ba1\u7406\u9879\u76ee\u4f9d\u8d56\u3002\u53ef\u4ee5\u4f7f\u7528<code>requirements.txt<\/code>\u6587\u4ef6\u5217\u51fa\u9879\u76ee\u6240\u9700\u7684\u4f9d\u8d56\u5e93\uff0c\u65b9\u4fbf\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u5feb\u901f\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install -r requirements.txt<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>9.3\u3001\u4f7f\u7528\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/p>\n<\/p>\n<p><p>\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u53ef\u4ee5\u5e2e\u52a9\u4f60\u8ddf\u8e2a\u4ee3\u7801\u7684\u53d8\u5316\uff0c\u534f\u4f5c\u5f00\u53d1\u3002Git\u662f\u76ee\u524d\u6700\u6d41\u884c\u7684\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u53ef\u4ee5\u901a\u8fc7GitHub\u3001GitLab\u7b49\u5e73\u53f0\u8fdb\u884c\u8fdc\u7a0b\u534f\u4f5c\u3002\u5728\u9879\u76ee\u4e2d\u521d\u59cb\u5316Git\u4ed3\u5e93\uff0c\u6dfb\u52a0\u548c\u63d0\u4ea4\u4ee3\u7801\u53d8\u5316\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">git init<\/p>\n<p>git add .<\/p>\n<p>git commit -m &quot;Initial commit&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u7136\u540e\u5c06\u4ee3\u7801\u63a8\u9001\u5230\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u5b9e\u73b0\u7248\u672c\u63a7\u5236\u548c\u534f\u4f5c\u5f00\u53d1\u3002<\/p>\n<\/p>\n<p><p>\u5341\u3001\u6301\u7eed\u5b66\u4e60\u548c\u5b9e\u8df5<\/p>\n<\/p>\n<p><p>Python\u662f\u4e00\u95e8\u4e0d\u65ad\u53d1\u5c55\u7684\u8bed\u8a00\uff0c\u793e\u533a\u6d3b\u8dc3\uff0c\u6280\u672f\u66f4\u65b0\u5feb\u3002\u8981\u4fdd\u6301\u5bf9Python\u7684\u6df1\u5165\u7406\u89e3\u548c\u5e94\u7528\uff0c\u9700\u8981\u6301\u7eed\u5b66\u4e60\u548c\u5b9e\u8df5\u3002<\/p>\n<\/p>\n<p><p>10.1\u3001\u9605\u8bfb\u5b98\u65b9\u6587\u6863<\/p>\n<\/p>\n<p><p>Python\u5b98\u65b9\u6587\u6863\u662f\u5b66\u4e60Python\u6700\u6743\u5a01\u7684\u8d44\u6599\uff0c\u6db5\u76d6\u4e86\u8bed\u8a00\u7279\u6027\u3001\u6807\u51c6\u5e93\u3001\u7b2c\u4e09\u65b9\u5e93\u7b49\u591a\u4e2a\u65b9\u9762\u3002\u901a\u8fc7\u9605\u8bfb\u5b98\u65b9\u6587\u6863\uff0c\u53ef\u4ee5\u6df1\u5165\u7406\u89e3Python\u7684\u8bbe\u8ba1\u7406\u5ff5\u548c\u6700\u4f73\u5b9e\u8df5\u3002<\/p>\n<\/p>\n<p><p>10.2\u3001\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee<\/p>\n<\/p>\n<p><p>\u53c2\u4e0e\u5f00\u6e90\u9879\u76ee\u662f\u63d0\u9ad8\u7f16\u7a0b\u6c34\u5e73\u7684\u91cd\u8981\u9014\u5f84\u3002\u901a\u8fc7\u9605\u8bfb\u548c\u8d21\u732e\u5f00\u6e90\u9879\u76ee\u4ee3\u7801\uff0c\u53ef\u4ee5\u5b66\u4e60\u5230\u4f18\u79c0\u7684\u7f16\u7a0b\u6280\u5de7\u548c\u9879\u76ee\u7ba1\u7406\u7ecf\u9a8c\u3002\u53ef\u4ee5\u901a\u8fc7GitHub\u7b49\u5e73\u53f0\u627e\u5230\u611f\u5174\u8da3\u7684\u5f00\u6e90\u9879\u76ee\uff0c\u53c2\u4e0e\u5176\u4e2d\u3002<\/p>\n<\/p>\n<p><p>10.3\u3001\u53c2\u52a0\u6280\u672f\u793e\u533a\u548c\u6d3b\u52a8<\/p>\n<\/p>\n<p><p>\u52a0\u5165\u6280\u672f\u793e\u533a\u3001\u53c2\u52a0\u6280\u672f\u6d3b\u52a8\u662f\u83b7\u53d6\u6700\u65b0\u6280\u672f\u52a8\u6001\u3001\u4ea4\u6d41\u7ecf\u9a8c\u7684\u91cd\u8981\u9014\u5f84\u3002\u53ef\u4ee5\u901a\u8fc7\u5728\u7ebf\u8bba\u575b\u3001\u5fae\u4fe1\u7fa4\u3001\u7ebf\u4e0b\u6c99\u9f99\u7b49\u65b9\u5f0f\uff0c\u7ed3\u8bc6\u66f4\u591a\u7684Python\u7231\u597d\u8005\uff0c\u5206\u4eab\u7ecf\u9a8c\uff0c\u4e92\u76f8\u5b66\u4e60\u3002<\/p>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u4f60\u5df2\u7ecf\u638c\u63e1\u4e86\u5728Notepad\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\u7684\u57fa\u672c\u65b9\u6cd5\uff0c\u5305\u62ec<strong>\u5b89\u88c5Python\u89e3\u91ca\u5668\u3001\u914d\u7f6e\u73af\u5883\u53d8\u91cf\u3001\u7f16\u5199Python\u4ee3\u7801\u3001\u4fdd\u5b58\u6587\u4ef6\u3001\u5728\u547d\u4ee4\u884c\u8fd0\u884cPython\u6587\u4ef6<\/strong>\u3002\u540c\u65f6\uff0c\u8fd8\u4ecb\u7ecd\u4e86\u4f7f\u7528Notepad++\u548c\u5176\u4ed6\u7f16\u8f91\u5668\u3001\u8c03\u8bd5Python\u4ee3\u7801\u3001\u63d0\u9ad8\u7f16\u7a0b\u6280\u5de7\u3001\u9879\u76ee\u7ba1\u7406\u548c\u7248\u672c\u63a7\u5236\u7b49\u5185\u5bb9\u3002\u5e0c\u671b\u8fd9\u4e9b\u5185\u5bb9\u80fd\u591f\u5e2e\u52a9\u4f60\u66f4\u597d\u5730\u5b66\u4e60\u548c\u5e94\u7528Python\u7f16\u7a0b\uff0c\u4e0d\u65ad\u63d0\u9ad8\u81ea\u5df1\u7684\u7f16\u7a0b\u6c34\u5e73\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728 Notepad \u4e2d\u8fd0\u884c Python \u7a0b\u5e8f\uff1f<\/strong><br \/>\u5728 Notepad \u4e2d\u76f4\u63a5\u8fd0\u884c Python \u7a0b\u5e8f\u5e76\u4e0d\u53ef\u884c\uff0c\u4f46\u4f60\u53ef\u4ee5\u901a\u8fc7\u7f16\u5199\u4ee3\u7801\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3a .py \u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528\u547d\u4ee4\u884c\u6216\u7ec8\u7aef\u6267\u884c\u8be5\u6587\u4ef6\u3002\u786e\u4fdd\u4f60\u7684\u8ba1\u7b97\u673a\u4e0a\u5df2\u5b89\u88c5 Python\uff0c\u5e76\u5728\u7cfb\u7edf\u73af\u5883\u53d8\u91cf\u4e2d\u914d\u7f6e\u597d Python \u8def\u5f84\u3002<\/p>\n<p><strong>\u6211\u9700\u8981\u5b89\u88c5\u54ea\u4e9b\u8f6f\u4ef6\u624d\u80fd\u5728 Notepad \u4e2d\u7f16\u5199 Python \u7a0b\u5e8f\uff1f<\/strong><br \/>\u8981\u4f7f\u7528 Notepad \u7f16\u5199 Python \u7a0b\u5e8f\uff0c\u4f60\u53ea\u9700\u786e\u4fdd\u5b89\u88c5\u4e86 Python \u89e3\u91ca\u5668\u3002\u53ef\u4ee5\u4ece Python \u5b98\u7f51\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5\u540e\uff0c\u8bb0\u5f97\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9009\u62e9\u5c06 Python \u6dfb\u52a0\u5230\u7cfb\u7edf\u7684\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8fd0\u884c Python\u3002<\/p>\n<p><strong>\u5982\u4f55\u4fdd\u5b58\u6211\u7684 Python \u7a0b\u5e8f\u4ee5\u4fbf\u8fd0\u884c\uff1f<\/strong><br \/>\u5728 Notepad \u4e2d\u7f16\u5199\u5b8c Python \u4ee3\u7801\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u201c\u6587\u4ef6\u201d\u83dc\u5355\u9009\u62e9\u201c\u53e6\u5b58\u4e3a\u201d\u3002\u5728\u4fdd\u5b58\u5bf9\u8bdd\u6846\u4e2d\uff0c\u5c06\u6587\u4ef6\u540d\u8bbe\u7f6e\u4e3a\u201cyour_script.py\u201d\uff0c\u786e\u4fdd\u6587\u4ef6\u7c7b\u578b\u9009\u62e9\u4e3a\u201c\u6240\u6709\u6587\u4ef6\u201d\u3002\u8fd9\u6837\u5c31\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2a Python \u811a\u672c\uff0c\u4e4b\u540e\u53ef\u4ee5\u5728\u547d\u4ee4\u884c\u4e2d\u901a\u8fc7 <code>python your_script.py<\/code> \u547d\u4ee4\u6765\u8fd0\u884c\u5b83\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5728Notepad\u4e2d\u8fd0\u884cPython\u7a0b\u5e8f\uff0c\u4f60\u9700\u8981\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5\u4e86Python\u89e3\u91ca\u5668\uff0c\u5e76\u914d\u7f6e\u597d\u4e86\u73af\u5883\u53d8\u91cf\u3002\u4ee5\u4e0b\u662f\u4e3b [&hellip;]","protected":false},"author":3,"featured_media":1156095,"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\/1156087"}],"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=1156087"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156087\/revisions"}],"predecessor-version":[{"id":1156097,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1156087\/revisions\/1156097"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1156095"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1156087"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1156087"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1156087"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}