{"id":934328,"date":"2024-12-26T18:33:52","date_gmt":"2024-12-26T10:33:52","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/934328.html"},"modified":"2024-12-26T18:33:54","modified_gmt":"2024-12-26T10:33:54","slug":"python%e5%a6%82%e4%bd%95%e6%89%93%e5%87%bahelloworld","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/934328.html","title":{"rendered":"python\u5982\u4f55\u6253\u51fahelloworld"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25071403\/98dabc2c-ab43-492a-9dca-77575faff1bf.webp\" alt=\"python\u5982\u4f55\u6253\u51fahelloworld\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6253\u5370\u201cHello, World!\u201d\u7684\u65b9\u5f0f\u975e\u5e38\u7b80\u5355\u3001\u76f4\u63a5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528print()\u51fd\u6570\u5b9e\u73b0\u3002\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u786e\u4fdd\u5df2\u5b89\u88c5Python\u89e3\u91ca\u5668\uff0c\u7136\u540e\u5728Python\u73af\u5883\u4e2d\u6267\u884c\u4ee5\u4e0b\u4ee3\u7801\uff1a<code>print(&quot;Hello, World!&quot;)<\/code>\u3002print()\u51fd\u6570\u7528\u4e8e\u5c06\u6307\u5b9a\u7684\u6d88\u606f\u8f93\u51fa\u5230\u5c4f\u5e55\uff0c\u5b57\u7b26\u4e32\u5185\u5bb9\u9700\u8981\u7528\u5f15\u53f7\u62ec\u8d77\u6765\u3002<\/strong>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u5982\u4f55\u5728\u4e0d\u540c\u73af\u5883\u548c\u573a\u666f\u4e0b\u5b9e\u73b0\u8fd9\u4e00\u7b80\u5355\u64cd\u4f5c\uff0c\u4ee5\u53caPython\u4e2d\u7684print()\u51fd\u6570\u7684\u66f4\u591a\u7528\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>1\u3001\u5728Windows\u4e0a\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u8981\u5728Windows\u4e0a\u5b89\u88c5Python\uff0c\u9996\u5148\u9700\u8981\u8bbf\u95eePython\u7684\u5b98\u65b9\u7f51\u7ad9\uff08<a href=\"https:\/\/www.python.org\/%EF%BC%89%EF%BC%8C%E7%84%B6%E5%90%8E%E4%B8%8B%E8%BD%BD%E9%80%82%E7%94%A8%E4%BA%8EWindows%E7%9A%84%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F%E3%80%82%E9%80%9A%E5%B8%B8%EF%BC%8C%E9%80%89%E6%8B%A9%E6%9C%80%E6%96%B0%E7%9A%84%E7%A8%B3%E5%AE%9A%E7%89%88%E6%9C%AC%E8%BF%9B%E8%A1%8C%E4%B8%8B%E8%BD%BD%E3%80%82%E8%BF%90%E8%A1%8C%E4%B8%8B%E8%BD%BD%E7%9A%84%E5%AE%89%E8%A3%85%E7%A8%8B%E5%BA%8F%E5%90%8E%EF%BC%8C%E7%A1%AE%E4%BF%9D%E5%8B%BE%E9%80%89%E2%80%9CAdd\">https:\/\/www.python.org\/\uff09\uff0c\u7136\u540e\u4e0b\u8f7d\u9002\u7528\u4e8eWindows\u7684\u5b89\u88c5\u7a0b\u5e8f\u3002\u901a\u5e38\uff0c\u9009\u62e9\u6700\u65b0\u7684\u7a33\u5b9a\u7248\u672c\u8fdb\u884c\u4e0b\u8f7d\u3002\u8fd0\u884c\u4e0b\u8f7d\u7684\u5b89\u88c5\u7a0b\u5e8f\u540e\uff0c\u786e\u4fdd\u52fe\u9009\u201cAdd<\/a> Python to PATH\u201d\u9009\u9879\uff0c\u4ee5\u4fbf\u5728\u547d\u4ee4\u884c\u4e2d\u76f4\u63a5\u4f7f\u7528Python\u547d\u4ee4\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u547d\u4ee4\u884c\u8f93\u5165<code>python --version<\/code>\u6765\u68c0\u67e5Python\u662f\u5426\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u5728macOS\u4e0a\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>macOS\u901a\u5e38\u81ea\u5e26Python\uff0c\u4f46\u7248\u672c\u53ef\u80fd\u8f83\u65e7\u3002\u56e0\u6b64\uff0c\u5efa\u8bae\u4f7f\u7528Homebrew\u6765\u5b89\u88c5\u6700\u65b0\u7248\u672c\u7684Python\u3002\u9996\u5148\uff0c\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5Homebrew\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">\/bin\/bash -c &quot;$(curl -fsSL https:\/\/raw.githubusercontent.com\/Homebrew\/install\/HEAD\/install.sh)&quot;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u63a5\u7740\uff0c\u4f7f\u7528Homebrew\u5b89\u88c5Python\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">brew install python<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u7ec8\u7aef\u8f93\u5165<code>python3 --version<\/code>\u6765\u68c0\u67e5Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u5728Linux\u4e0a\u5b89\u88c5Python<\/p>\n<\/p>\n<p><p>\u5927\u591a\u6570Linux\u53d1\u884c\u7248\u90fd\u9884\u88c5\u4e86Python\uff0c\u4f46\u5982\u679c\u9700\u8981\u5b89\u88c5\u6216\u66f4\u65b0Python\uff0c\u53ef\u4ee5\u4f7f\u7528\u5305\u7ba1\u7406\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>\u5728Fedora\u7cfb\u7edf\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">sudo dnf install python3<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u901a\u8fc7\u547d\u4ee4<code>python3 --version<\/code>\u68c0\u67e5Python\u7248\u672c\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528Python\u6253\u5370\u201cHello, World!\u201d<\/p>\n<\/p>\n<p><p>1\u3001\u901a\u8fc7Python\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668<\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u4e00\u4e2a\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u53ef\u4ee5\u76f4\u63a5\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165Python\u4ee3\u7801\u3002\u8981\u4f7f\u7528\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0c\u53ea\u9700\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165<code>python<\/code>\uff08\u6216<code>python3<\/code>\uff0c\u53d6\u51b3\u4e8e\u7cfb\u7edf\u914d\u7f6e\uff09\uff0c\u8fdb\u5165Python\u89e3\u91ca\u5668\u73af\u5883\uff0c\u7136\u540e\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6267\u884c\u540e\uff0c\u5c4f\u5e55\u4e0a\u4f1a\u663e\u793a\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u901a\u8fc7Python\u811a\u672c\u6587\u4ef6<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\uff0cPython\u4ee3\u7801\u901a\u5e38\u4fdd\u5b58\u5728\u811a\u672c\u6587\u4ef6\u4e2d\uff0c\u7136\u540e\u6267\u884c\u8be5\u6587\u4ef6\u3002\u5728\u6587\u672c\u7f16\u8f91\u5668\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\uff0c\u547d\u540d\u4e3a<code>hello.py<\/code>\uff0c\u5e76\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello, World!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u5bfc\u822a\u5230\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55\uff0c\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u8fd0\u884c\u811a\u672c\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u6216\u8005<\/p>\n<\/p>\n<p><pre><code class=\"language-bash\">python3 hello.py<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51fa\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u6df1\u5165\u7406\u89e3print()\u51fd\u6570<\/p>\n<\/p>\n<p><p>1\u3001print()\u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<p><p><code>print()<\/code>\u662fPython\u5185\u7f6e\u7684\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u4fe1\u606f\u8f93\u51fa\u5230\u6807\u51c6\u8f93\u51fa\u8bbe\u5907\uff08\u901a\u5e38\u662f\u5c4f\u5e55\uff09\u3002\u5b83\u53ef\u4ee5\u63a5\u53d7\u591a\u4e2a\u53c2\u6570\uff0c\u5e76\u652f\u6301\u5404\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5982\u5b57\u7b26\u4e32\u3001\u6570\u5b57\u548c\u5217\u8868\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello&quot;, &quot;World&quot;, 123)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u884c\u4ee3\u7801\u5c06\u8f93\u51fa\u201cHello World 123\u201d\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u683c\u5f0f\u5316\u8f93\u51fa<\/p>\n<\/p>\n<p><p>Python\u7684<code>print()<\/code>\u51fd\u6570\u652f\u6301\u683c\u5f0f\u5316\u8f93\u51fa\uff0c\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u6216f-strings\u6765\u5b9e\u73b0\u3002\u4f7f\u7528\u4f20\u7edf\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;World&quot;<\/p>\n<p>print(&quot;Hello, %s!&quot; % name)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528f-strings\uff08Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\u652f\u6301\uff09\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;World&quot;<\/p>\n<p>print(f&quot;Hello, {name}!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>3\u3001\u6307\u5b9a\u5206\u9694\u7b26\u548c\u7ed3\u675f\u7b26<\/p>\n<\/p>\n<p><p><code>print()<\/code>\u51fd\u6570\u7684<code>sep<\/code>\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u591a\u4e2a\u8f93\u51fa\u9879\u4e4b\u95f4\u7684\u5206\u9694\u7b26\uff0c\u9ed8\u8ba4\u662f\u7a7a\u683c\uff1b<code>end<\/code>\u53c2\u6570\u7528\u4e8e\u6307\u5b9a\u8f93\u51fa\u7ed3\u675f\u540e\u7684\u5b57\u7b26\uff0c\u9ed8\u8ba4\u662f\u6362\u884c\u7b26\u3002\u4f8b\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello&quot;, &quot;World&quot;, sep=&quot;, &quot;, end=&quot;!\\n&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u5c06\u8f93\u51fa\u201cHello, World!\u201d\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5728\u4e0d\u540c\u73af\u5883\u4e2d\u8fd0\u884cPython\u4ee3\u7801<\/p>\n<\/p>\n<p><p>1\u3001\u5728IDLE\u4e2d\u8fd0\u884c<\/p>\n<\/p>\n<p><p>IDLE\u662fPython\u81ea\u5e26\u7684\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff0c\u63d0\u4f9b\u4e86\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u548c\u811a\u672c\u7f16\u8f91\u529f\u80fd\u3002\u5728IDLE\u4e2d\u6253\u5f00\u4e00\u4e2a\u65b0\u6587\u4ef6\uff0c\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\uff0c\u7136\u540e\u901a\u8fc7\u201cRun\u201d\u83dc\u5355\u9009\u62e9\u201cRun Module\u201d\u6765\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>2\u3001\u5728Jupyter Notebook\u4e2d\u8fd0\u884c<\/p>\n<\/p>\n<p><p>Jupyter Notebook\u662f\u4e00\u79cd\u4ea4\u4e92\u5f0f\u8ba1\u7b97\u73af\u5883\uff0c\u9002\u5408\u6570\u636e\u5206\u6790\u548c\u79d1\u5b66\u8ba1\u7b97\u3002\u5b89\u88c5Jupyter\u540e\uff0c\u53ef\u4ee5\u5728Notebook\u4e2d\u521b\u5efa\u4e00\u4e2a\u65b0\u5355\u5143\uff0c\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\uff0c\u5e76\u6267\u884c\u5355\u5143\u4ee5\u67e5\u770b\u8f93\u51fa\u7ed3\u679c\u3002<\/p>\n<\/p>\n<p><p>3\u3001\u5728\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u4e2d\u8fd0\u884c<\/p>\n<\/p>\n<p><p>\u9664\u4e86IDLE\uff0c\u8fd8\u6709\u8bb8\u591a\u6d41\u884c\u7684IDE\u652f\u6301Python\u5f00\u53d1\uff0c\u5982PyCharm\u3001Visual Studio Code\u548cAtom\u3002\u4f7f\u7528\u8fd9\u4e9bIDE\uff0c\u53ef\u4ee5\u521b\u5efaPython\u9879\u76ee\uff0c\u7f16\u5199\u548c\u8c03\u8bd5\u4ee3\u7801\u3002\u4ee5PyCharm\u4e3a\u4f8b\uff0c\u65b0\u5efa\u4e00\u4e2aPython\u6587\u4ef6\uff0c\u8f93\u5165<code>print(&quot;Hello, World!&quot;)<\/code>\uff0c\u7136\u540e\u4f7f\u7528IDE\u63d0\u4f9b\u7684\u8fd0\u884c\u529f\u80fd\u6267\u884c\u4ee3\u7801\u3002<\/p>\n<\/p>\n<p><p>\u4e94\u3001\u603b\u7ed3\u4e0e\u6269\u5c55<\/p>\n<\/p>\n<p><p>\u6253\u5370\u201cHello, World!\u201d\u662fPython\u5b66\u4e60\u7684\u7b2c\u4e00\u6b65\uff0c\u5c3d\u7ba1\u7b80\u5355\uff0c\u4f46\u5b83\u5c55\u793a\u4e86Python\u7684\u57fa\u7840\u8bed\u6cd5\u548c\u6267\u884c\u73af\u5883\u8bbe\u7f6e\u3002\u901a\u8fc7\u8fd9\u4e00\u8fc7\u7a0b\uff0c\u6211\u4eec\u4e86\u89e3\u4e86\u5982\u4f55\u5b89\u88c5Python\u3001\u4f7f\u7528\u4e0d\u540c\u7684\u73af\u5883\u8fd0\u884c\u4ee3\u7801\u3001\u4ee5\u53caprint()\u51fd\u6570\u7684\u57fa\u672c\u529f\u80fd\u3002Python\u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u5176\u7b80\u6d01\u660e\u4e86\u7684\u8bed\u6cd5\u548c\u4e30\u5bcc\u7684\u5e93\u652f\u6301\uff0c\u4f7f\u5f97\u590d\u6742\u7684\u7f16\u7a0b\u4efb\u52a1\u4e5f\u80fd\u8f7b\u677e\u5b9e\u73b0\u3002\u5728\u638c\u63e1\u57fa\u7840\u540e\uff0c\u5efa\u8bae\u7ee7\u7eed\u5b66\u4e60Python\u7684\u6570\u636e\u7c7b\u578b\u3001\u63a7\u5236\u7ed3\u6784\u3001\u51fd\u6570\u548c\u7c7b\uff0c\u4ee5\u4fbf\u6df1\u5165\u7406\u89e3\u548c\u5e94\u7528Python\u7f16\u7a0b\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u4f7f\u7528Python\u8f93\u51fa&quot;Hello, World!&quot;\uff1f<\/strong><br \/>\u4f7f\u7528Python\u7f16\u7a0b\u8bed\u8a00\u8f93\u51fa&quot;Hello, World!&quot;\u975e\u5e38\u7b80\u5355\u3002\u53ea\u9700\u5728Python\u73af\u5883\u4e2d\u8f93\u5165\u4ee5\u4e0b\u4ee3\u7801\uff1a<code>print(&quot;Hello, World!&quot;)<\/code>\u3002\u8fd9\u884c\u4ee3\u7801\u5229\u7528\u4e86<code>print()<\/code>\u51fd\u6570\uff0c\u5c06\u5b57\u7b26\u4e32&quot;Hello, World!&quot;\u6253\u5370\u5230\u63a7\u5236\u53f0\u3002\u786e\u4fdd\u5728\u8fd0\u884c\u4ee3\u7801\u4e4b\u524d\u5b89\u88c5\u597dPython\u73af\u5883\u3002<\/p>\n<p><strong>Python\u4e2d\u662f\u5426\u6709\u5176\u4ed6\u65b9\u6cd5\u53ef\u4ee5\u8f93\u51fa\u6587\u672c\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>print()<\/code>\u51fd\u6570\uff0c\u60a8\u8fd8\u53ef\u4ee5\u901a\u8fc7\u5176\u4ed6\u65b9\u5f0f\u8f93\u51fa\u6587\u672c\u3002\u4f8b\u5982\uff0c\u53ef\u4ee5\u5c06\u6587\u672c\u5b58\u50a8\u5728\u53d8\u91cf\u4e2d\uff0c\u7136\u540e\u518d\u6253\u5370\u8be5\u53d8\u91cf\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a  <\/p>\n<pre><code class=\"language-python\">message = &quot;Hello, World!&quot;\nprint(message)\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u5728\u9700\u8981\u591a\u6b21\u4f7f\u7528\u540c\u4e00\u6587\u672c\u65f6\u7279\u522b\u6709\u7528\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u8f93\u51fa\u6587\u672c\u65f6\u4f1a\u9047\u5230\u4ec0\u4e48\u5e38\u89c1\u9519\u8bef\uff1f<\/strong><br \/>\u5728\u8f93\u51fa\u6587\u672c\u65f6\uff0c\u5e38\u89c1\u7684\u9519\u8bef\u5305\u62ec\u8bed\u6cd5\u9519\u8bef\u548c\u62fc\u5199\u9519\u8bef\u3002\u4f8b\u5982\uff0c\u5982\u679c\u5fd8\u8bb0\u5728\u5b57\u7b26\u4e32\u5468\u56f4\u52a0\u5f15\u53f7\uff0c\u6216\u8005\u5728\u8c03\u7528<code>print<\/code>\u51fd\u6570\u65f6\u4f7f\u7528\u4e86\u9519\u8bef\u7684\u62ec\u53f7\uff0c\u90fd\u4f1a\u5bfc\u81f4\u9519\u8bef\u3002\u786e\u4fdd\u4ee3\u7801\u8bed\u6cd5\u6b63\u786e\uff0c\u5e76\u4ed4\u7ec6\u68c0\u67e5\u8f93\u5165\u7684\u6bcf\u4e2a\u5b57\u7b26\uff0c\u53ef\u4ee5\u6709\u6548\u907f\u514d\u8fd9\u4e9b\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6253\u5370\u201cHello, World!\u201d\u7684\u65b9\u5f0f\u975e\u5e38\u7b80\u5355\u3001\u76f4\u63a5\uff0c\u53ef\u4ee5\u901a\u8fc7\u4f7f\u7528print()\u51fd\u6570\u5b9e\u73b0\u3002 [&hellip;]","protected":false},"author":3,"featured_media":934330,"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\/934328"}],"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=934328"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/934328\/revisions"}],"predecessor-version":[{"id":934331,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/934328\/revisions\/934331"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/934330"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=934328"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=934328"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=934328"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}