{"id":1122686,"date":"2025-01-08T19:23:48","date_gmt":"2025-01-08T11:23:48","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1122686.html"},"modified":"2025-01-08T19:23:50","modified_gmt":"2025-01-08T11:23:50","slug":"python%e5%a6%82%e4%bd%95%e6%b7%bb%e5%8a%a0%e5%88%b0%e6%a1%8c%e9%9d%a2%e5%bf%ab%e6%8d%b7%e6%96%b9%e5%bc%8f","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1122686.html","title":{"rendered":"python\u5982\u4f55\u6dfb\u52a0\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084433\/5445f579-3f9e-40ee-84ac-39dcc774aefe.webp\" alt=\"python\u5982\u4f55\u6dfb\u52a0\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f\" \/><\/p>\n<p><p> <strong>Python \u6dfb\u52a0\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528 Python \u81ea\u5e26\u7684\u6a21\u5757\u3001\u7b2c\u4e09\u65b9\u5e93\u3001\u4ee5\u53ca\u624b\u52a8\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u3002\u901a\u8fc7\u4f7f\u7528 <code>pyshortcuts<\/code> \u5e93\u3001\u7f16\u5199\u624b\u52a8\u811a\u672c\u3001\u6216\u8005\u76f4\u63a5\u4fee\u6539\u7cfb\u7edf\u914d\u7f6e\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06 Python \u7a0b\u5e8f\u6dfb\u52a0\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002<\/strong> \u4ee5\u4e0b\u662f\u8be6\u7ec6\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528 Pyshortcuts \u5e93<\/h3>\n<\/p>\n<p><p><code>pyshortcuts<\/code> \u662f\u4e00\u4e2a\u4fbf\u6377\u7684 Python \u5e93\uff0c\u53ef\u4ee5\u5e2e\u52a9\u4f60\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002\u5b83\u4e0d\u4ec5\u652f\u6301 Windows\uff0c\u8fd8\u652f\u6301 macOS \u548c Linux\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528 <code>pyshortcuts<\/code> \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5 Pyshortcuts<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5 <code>pyshortcuts<\/code> \u5e93\u3002\u4f60\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u8fdb\u884c\u5b89\u88c5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install pyshortcuts<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/h4>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u521b\u5efa\u4e00\u4e2a\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">from pyshortcuts import Shortcut<\/p>\n<h2><strong>\u521b\u5efa\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\u5bf9\u8c61<\/strong><\/h2>\n<p>sc = Shortcut(<\/p>\n<p>    script=&#39;path\/to\/your_script.py&#39;,  # \u66ff\u6362\u4e3a\u4f60\u7684 Python \u811a\u672c\u8def\u5f84<\/p>\n<p>    name=&#39;MyApp&#39;,                     # \u5feb\u6377\u65b9\u5f0f\u7684\u540d\u5b57<\/p>\n<p>    description=&#39;My Python Application&#39;,  # \u63cf\u8ff0<\/p>\n<p>)<\/p>\n<h2><strong>\u5c06\u5feb\u6377\u65b9\u5f0f\u4fdd\u5b58\u5230\u684c\u9762<\/strong><\/h2>\n<p>sc.save(desktop=True)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528 winshell \u5e93\uff08\u4ec5 Windows\uff09<\/h3>\n<\/p>\n<p><p><code>winshell<\/code> \u662f\u53e6\u4e00\u4e2a\u53ef\u4ee5\u5728 Windows \u7cfb\u7edf\u4e0a\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u7684\u5e93\u3002\u4ee5\u4e0b\u662f\u4f7f\u7528 <code>winshell<\/code> \u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u7684\u6b65\u9aa4\uff1a<\/p>\n<\/p>\n<p><h4>\u5b89\u88c5 winshell<\/h4>\n<\/p>\n<p><p>\u9996\u5148\uff0c\u5b89\u88c5 <code>winshell<\/code> \u5e93\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">pip install winshell<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f<\/h4>\n<\/p>\n<p><p>\u4f7f\u7528\u4ee5\u4e0b\u4ee3\u7801\u5728 Windows \u7cfb\u7edf\u4e0a\u521b\u5efa\u4e00\u4e2a\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import winshell<\/p>\n<p>from win32com.client import Dispatch<\/p>\n<p>desktop = winshell.desktop()<\/p>\n<p>path = os.path.join(desktop, &quot;MyApp.lnk&quot;)<\/p>\n<p>target = r&quot;path\\to\\your_script.py&quot;  # \u66ff\u6362\u4e3a\u4f60\u7684 Python \u811a\u672c\u8def\u5f84<\/p>\n<p>wDir = r&quot;path\\to&quot;  # \u66ff\u6362\u4e3a\u4f60\u7684\u5de5\u4f5c\u76ee\u5f55<\/p>\n<p>icon = r&quot;path\\to\\icon.ico&quot;  # \u66ff\u6362\u4e3a\u4f60\u7684\u56fe\u6807\u6587\u4ef6\u8def\u5f84<\/p>\n<p>shell = Dispatch(&#39;WScript.Shell&#39;)<\/p>\n<p>shortcut = shell.CreateShortCut(path)<\/p>\n<p>shortcut.Targetpath = target<\/p>\n<p>shortcut.WorkingDirectory = wDir<\/p>\n<p>shortcut.IconLocation = icon<\/p>\n<p>shortcut.save()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e09\u3001\u624b\u52a8\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u4f60\u4e0d\u60f3\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\uff0c\u53ef\u4ee5\u624b\u52a8\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u3002<\/p>\n<\/p>\n<p><h4>Windows<\/h4>\n<\/p>\n<p><p>\u5728 Windows \u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u624b\u52a8\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<ol>\n<li><strong>\u53f3\u952e\u70b9\u51fb\u684c\u9762<\/strong>\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d-&gt;\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002<\/li>\n<li>\u5728\u201c\u8f93\u5165\u5bf9\u8c61\u7684\u4f4d\u7f6e\u201d\u4e2d\uff0c\u8f93\u5165 Python \u811a\u672c\u7684\u8def\u5f84\uff0c\u4f8b\u5982 <code>C:\\Python\\my_script.py<\/code>\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\uff0c\u8f93\u5165\u5feb\u6377\u65b9\u5f0f\u7684\u540d\u79f0\uff0c\u7136\u540e\u70b9\u51fb\u201c\u5b8c\u6210\u201d\u3002<\/li>\n<li>\u53f3\u952e\u70b9\u51fb\u521b\u5efa\u597d\u7684\u5feb\u6377\u65b9\u5f0f\uff0c\u9009\u62e9\u201c\u5c5e\u6027\u201d\u3002<\/li>\n<li>\u5728\u201c\u76ee\u6807\u201d\u5b57\u6bb5\u4e2d\uff0c\u786e\u4fdd\u8def\u5f84\u6b63\u786e\uff0c\u5e76\u4ee5 <code>python.exe<\/code> \u4f5c\u4e3a\u524d\u7f00\uff0c\u4f8b\u5982 <code>C:\\Python\\python.exe C:\\Python\\my_script.py<\/code>\u3002<\/li>\n<li>\u53ef\u9009\uff1a\u5728\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u9009\u9879\u5361\u4e2d\uff0c\u70b9\u51fb\u201c\u66f4\u6539\u56fe\u6807\u201d\u9009\u62e9\u4e00\u4e2a\u81ea\u5b9a\u4e49\u56fe\u6807\u3002<\/li>\n<\/ol>\n<p><h4>macOS \u548c Linux<\/h4>\n<\/p>\n<p><p>\u5728 macOS \u548c Linux \u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u901a\u8fc7\u521b\u5efa <code>.desktop<\/code> \u6587\u4ef6\u6765\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<ol>\n<li>\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6587\u672c\u6587\u4ef6\uff0c\u547d\u540d\u4e3a <code>my_app.desktop<\/code>\u3002<\/li>\n<li>\u5c06\u4ee5\u4e0b\u5185\u5bb9\u7c98\u8d34\u5230\u6587\u4ef6\u4e2d\uff0c\u5e76\u6839\u636e\u9700\u8981\u4fee\u6539\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-ini\">[Desktop Entry]<\/p>\n<p>Name=MyApp<\/p>\n<p>Comment=My Python Application<\/p>\n<p>Exec=python3 \/path\/to\/your_script.py<\/p>\n<p>Icon=\/path\/to\/icon.png<\/p>\n<p>Terminal=false<\/p>\n<p>Type=Application<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li>\u5c06\u6587\u4ef6\u4fdd\u5b58\u5230\u684c\u9762\uff0c\u5e76\u786e\u4fdd\u6587\u4ef6\u5177\u6709\u53ef\u6267\u884c\u6743\u9650\uff1a<\/li>\n<\/ol>\n<p><pre><code class=\"language-bash\">chmod +x ~\/Desktop\/my_app.desktop<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u56db\u3001\u4f7f\u7528\u811a\u672c\u81ea\u52a8\u521b\u5efa\u5feb\u6377\u65b9\u5f0f<\/h3>\n<\/p>\n<p><p>\u4f60\u53ef\u4ee5\u7f16\u5199\u4e00\u4e2a Python \u811a\u672c\uff0c\u81ea\u52a8\u68c0\u6d4b\u64cd\u4f5c\u7cfb\u7edf\u5e76\u521b\u5efa\u76f8\u5e94\u7684\u5feb\u6377\u65b9\u5f0f\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import os<\/p>\n<p>import platform<\/p>\n<p>def create_shortcut():<\/p>\n<p>    system = platform.system()<\/p>\n<p>    if system == &#39;Windows&#39;:<\/p>\n<p>        create_windows_shortcut()<\/p>\n<p>    elif system == &#39;Darwin&#39;:<\/p>\n<p>        create_mac_shortcut()<\/p>\n<p>    elif system == &#39;Linux&#39;:<\/p>\n<p>        create_linux_shortcut()<\/p>\n<p>    else:<\/p>\n<p>        r<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>se Exception(f&#39;Unsupported OS: {system}&#39;)<\/p>\n<p>def create_windows_shortcut():<\/p>\n<p>    import winshell<\/p>\n<p>    from win32com.client import Dispatch<\/p>\n<p>    desktop = winshell.desktop()<\/p>\n<p>    path = os.path.join(desktop, &quot;MyApp.lnk&quot;)<\/p>\n<p>    target = r&quot;path\\to\\your_script.py&quot;<\/p>\n<p>    wDir = r&quot;path\\to&quot;<\/p>\n<p>    icon = r&quot;path\\to\\icon.ico&quot;<\/p>\n<p>    shell = Dispatch(&#39;WScript.Shell&#39;)<\/p>\n<p>    shortcut = shell.CreateShortCut(path)<\/p>\n<p>    shortcut.Targetpath = target<\/p>\n<p>    shortcut.WorkingDirectory = wDir<\/p>\n<p>    shortcut.IconLocation = icon<\/p>\n<p>    shortcut.save()<\/p>\n<p>def create_mac_shortcut():<\/p>\n<p>    desktop = os.path.join(os.path.join(os.path.expanduser(&#39;~&#39;)), &#39;Desktop&#39;)<\/p>\n<p>    shortcut_path = os.path.join(desktop, &#39;my_app.desktop&#39;)<\/p>\n<p>    with open(shortcut_path, &#39;w&#39;) as f:<\/p>\n<p>        f.write(&quot;&quot;&quot;[Desktop Entry]<\/p>\n<p>Name=MyApp<\/p>\n<p>Comment=My Python Application<\/p>\n<p>Exec=python3 \/path\/to\/your_script.py<\/p>\n<p>Icon=\/path\/to\/icon.png<\/p>\n<p>Terminal=false<\/p>\n<p>Type=Application&quot;&quot;&quot;)<\/p>\n<p>    os.chmod(shortcut_path, 0o755)<\/p>\n<p>def create_linux_shortcut():<\/p>\n<p>    desktop = os.path.join(os.path.join(os.path.expanduser(&#39;~&#39;)), &#39;Desktop&#39;)<\/p>\n<p>    shortcut_path = os.path.join(desktop, &#39;my_app.desktop&#39;)<\/p>\n<p>    with open(shortcut_path, &#39;w&#39;) as f:<\/p>\n<p>        f.write(&quot;&quot;&quot;[Desktop Entry]<\/p>\n<p>Name=MyApp<\/p>\n<p>Comment=My Python Application<\/p>\n<p>Exec=python3 \/path\/to\/your_script.py<\/p>\n<p>Icon=\/path\/to\/icon.png<\/p>\n<p>Terminal=false<\/p>\n<p>Type=Application&quot;&quot;&quot;)<\/p>\n<p>    os.chmod(shortcut_path, 0o755)<\/p>\n<p>if __name__ == &quot;__main__&quot;:<\/p>\n<p>    create_shortcut()<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6ce8\u610f\u4e8b\u9879\u548c\u6700\u4f73\u5b9e\u8df5<\/h3>\n<\/p>\n<ol>\n<li><strong>\u8def\u5f84\u95ee\u9898<\/strong>\uff1a\u786e\u4fdd\u5728\u811a\u672c\u4e2d\u4f7f\u7528\u7edd\u5bf9\u8def\u5f84\u800c\u4e0d\u662f\u76f8\u5bf9\u8def\u5f84\uff0c\u4ee5\u907f\u514d\u8def\u5f84\u9519\u8bef\u3002<\/li>\n<li><strong>\u6743\u9650\u95ee\u9898<\/strong>\uff1a\u5728 macOS \u548c Linux \u7cfb\u7edf\u4e0a\uff0c\u786e\u4fdd\u4f60\u7684 <code>.desktop<\/code> \u6587\u4ef6\u5177\u6709\u53ef\u6267\u884c\u6743\u9650\u3002<\/li>\n<li><strong>\u56fe\u6807\u548c\u5de5\u4f5c\u76ee\u5f55<\/strong>\uff1a\u4e3a\u4f60\u7684\u5feb\u6377\u65b9\u5f0f\u6307\u5b9a\u4e00\u4e2a\u56fe\u6807\u548c\u5de5\u4f5c\u76ee\u5f55\uff0c\u4f7f\u5176\u66f4\u52a0\u4e13\u4e1a\u548c\u7f8e\u89c2\u3002<\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06 Python \u7a0b\u5e8f\u6dfb\u52a0\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u65e2\u65b9\u4fbf\u53c8\u9ad8\u6548\u3002\u65e0\u8bba\u4f60\u4f7f\u7528\u7684\u662f Windows\u3001macOS \u8fd8\u662f Linux\uff0c\u90fd\u53ef\u4ee5\u627e\u5230\u9002\u5408\u81ea\u5df1\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Windows\u7cfb\u7edf\u4e2d\u521b\u5efaPython\u7a0b\u5e8f\u7684\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff1f<\/strong><br \/>\u8981\u5728Windows\u7cfb\u7edf\u4e2d\u4e3aPython\u7a0b\u5e8f\u521b\u5efa\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff0c\u53ef\u4ee5\u53f3\u952e\u70b9\u51fb\u684c\u9762\u7a7a\u767d\u5904\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u201d\u5e76\u70b9\u51fb\u201c\u5feb\u6377\u65b9\u5f0f\u201d\u3002\u5728\u5f39\u51fa\u7684\u7a97\u53e3\u4e2d\u8f93\u5165Python\u89e3\u91ca\u5668\u7684\u8def\u5f84\u548c\u4f60\u7684Python\u811a\u672c\u7684\u8def\u5f84\uff0c\u4f8b\u5982\uff1a<code>C:\\Python39\\python.exe C:\\path\\to\\your_script.py<\/code>\u3002\u5b8c\u6210\u540e\uff0c\u70b9\u51fb\u201c\u4e0b\u4e00\u6b65\u201d\uff0c\u4e3a\u5feb\u6377\u65b9\u5f0f\u547d\u540d\uff0c\u6700\u540e\u70b9\u51fb\u201c\u5b8c\u6210\u201d\u3002\u8fd9\u6837\uff0c\u4f60\u7684Python\u7a0b\u5e8f\u5feb\u6377\u65b9\u5f0f\u5c31\u4f1a\u51fa\u73b0\u5728\u684c\u9762\u4e0a\u3002<\/p>\n<p><strong>\u5728Mac\u7cfb\u7edf\u4e2d\u5982\u4f55\u6dfb\u52a0Python\u811a\u672c\u7684\u684c\u9762\u5feb\u6377\u65b9\u5f0f\uff1f<\/strong><br \/>\u5728Mac\u7cfb\u7edf\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7Automator\u6765\u521b\u5efaPython\u811a\u672c\u7684\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u3002\u6253\u5f00Automator\uff0c\u9009\u62e9\u201c\u65b0\u5efa\u6587\u7a3f\u201d\uff0c\u7136\u540e\u9009\u62e9\u201c\u5e94\u7528\u7a0b\u5e8f\u201d\u3002\u63a5\u7740\uff0c\u6dfb\u52a0\u201c\u8fd0\u884cShell\u811a\u672c\u201d\u64cd\u4f5c\uff0c\u5728\u811a\u672c\u4e2d\u8f93\u5165\u8fd0\u884cPython\u7684\u547d\u4ee4\uff0c\u4f8b\u5982\uff1a<code>\/usr\/bin\/python3 \/path\/to\/your_script.py<\/code>\u3002\u4fdd\u5b58\u540e\uff0c\u5c06\u751f\u6210\u7684\u5e94\u7528\u7a0b\u5e8f\u62d6\u5230\u684c\u9762\uff0c\u8fd9\u6837\u5c31\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u53cc\u51fb\u6765\u8fd0\u884c\u4f60\u7684Python\u811a\u672c\u4e86\u3002<\/p>\n<p><strong>\u5982\u4f55\u786e\u4fddPython\u811a\u672c\u7684\u5feb\u6377\u65b9\u5f0f\u53ef\u4ee5\u6b63\u5e38\u8fd0\u884c\uff1f<\/strong><br \/>\u786e\u4fdd\u5728\u521b\u5efa\u5feb\u6377\u65b9\u5f0f\u65f6\uff0c\u6240\u6307\u5411\u7684Python\u89e3\u91ca\u5668\u548c\u811a\u672c\u8def\u5f84\u662f\u6b63\u786e\u7684\u3002\u6b64\u5916\uff0c\u68c0\u67e5\u4f60\u7684\u811a\u672c\u662f\u5426\u6709\u6267\u884c\u6743\u9650\uff0c\u5c24\u5176\u662f\u5728Unix\u6216Linux\u7cfb\u7edf\u4e2d\u3002\u5982\u679cPython\u811a\u672c\u4e2d\u4f7f\u7528\u4e86\u7279\u5b9a\u7684\u5e93\u6216\u6a21\u5757\uff0c\u786e\u4fdd\u8fd9\u4e9b\u4f9d\u8d56\u9879\u5df2\u7ecf\u5b89\u88c5\u5e76\u53ef\u88abPython\u89e3\u91ca\u5668\u8bbf\u95ee\u3002\u901a\u8fc7\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u8fd0\u884c\u811a\u672c\u6765\u6d4b\u8bd5\u5176\u53ef\u6267\u884c\u6027\uff0c\u53ef\u4ee5\u5e2e\u52a9\u786e\u8ba4\u5feb\u6377\u65b9\u5f0f\u662f\u5426\u80fd\u591f\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"Python \u6dfb\u52a0\u5230\u684c\u9762\u5feb\u6377\u65b9\u5f0f\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u5305\u62ec\u4f7f\u7528 Python \u81ea\u5e26\u7684\u6a21\u5757\u3001\u7b2c\u4e09\u65b9\u5e93\u3001\u4ee5\u53ca\u624b\u52a8\u521b\u5efa\u5feb\u6377\u65b9 [&hellip;]","protected":false},"author":3,"featured_media":1122691,"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\/1122686"}],"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=1122686"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122686\/revisions"}],"predecessor-version":[{"id":1122692,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1122686\/revisions\/1122692"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1122691"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1122686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1122686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1122686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}