{"id":978920,"date":"2024-12-27T06:41:52","date_gmt":"2024-12-26T22:41:52","guid":{"rendered":""},"modified":"2024-12-27T06:41:54","modified_gmt":"2024-12-26T22:41:54","slug":"python%e9%87%8c%e5%a6%82%e4%bd%95%e6%89%93%e5%87%ba%e7%ac%a6%e5%8f%b7","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/978920.html","title":{"rendered":"python\u91cc\u5982\u4f55\u6253\u51fa\u7b26\u53f7"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/24203652\/f3b9f04f-026b-448d-918d-3faa17f0e179.webp\" alt=\"python\u91cc\u5982\u4f55\u6253\u51fa\u7b26\u53f7\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u8981\u8f93\u51fa\u7b26\u53f7\u6216\u7279\u6b8a\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u5305\u62ec<strong>\u76f4\u63a5\u6253\u5370\u5b57\u7b26\u3001\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3001\u5229\u7528Unicode\u7f16\u7801<\/strong>\u3002\u5176\u4e2d\uff0c\u76f4\u63a5\u6253\u5370\u5b57\u7b26\u662f\u6700\u5e38\u89c1\u548c\u7b80\u5355\u7684\u65b9\u6cd5\uff1b\u8f6c\u4e49\u5b57\u7b26\u7528\u4e8e\u4e00\u4e9b\u7279\u6b8a\u7684\u7b26\u53f7\uff1b\u800cUnicode\u7f16\u7801\u5219\u9002\u7528\u4e8e\u4e00\u4e9b\u4e0d\u5e38\u89c1\u7684\u6216\u7279\u5b9a\u5b57\u7b26\u3002\u4ee5\u4e0b\u662f\u5173\u4e8e\u5982\u4f55\u6253\u5370\u7b26\u53f7\u7684\u8be6\u7ec6\u8bf4\u660e\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u76f4\u63a5\u6253\u5370\u5b57\u7b26<\/p>\n<\/p>\n<p><p>\u76f4\u63a5\u6253\u5370\u5b57\u7b26\u662fPython\u4e2d\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u3002\u53ef\u4ee5\u901a\u8fc7\u5728print\u51fd\u6570\u4e2d\u8f93\u5165\u5b57\u7b26\u7684\u65b9\u5f0f\u6253\u5370\u51fa\u7b26\u53f7\u3002\u6bd4\u5982\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;!&quot;)<\/p>\n<p>print(&quot;@&quot;)<\/p>\n<p>print(&quot;#&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u5f0f\u9002\u7528\u4e8e\u5927\u591a\u6570\u7b26\u53f7\u548c\u5b57\u7b26\uff0c\u7279\u522b\u662f\u952e\u76d8\u4e0a\u53ef\u4ee5\u76f4\u63a5\u8f93\u5165\u7684\u7b26\u53f7\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u67d0\u4e9b\u7b26\u53f7\u9700\u8981\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u8fdb\u884c\u6253\u5370\u3002\u8f6c\u4e49\u5b57\u7b26\u901a\u5e38\u4ee5\u53cd\u659c\u6760\uff08\\\uff09\u5f00\u5934\uff0c\u540e\u63a5\u4e00\u4e2a\u5b57\u7b26\u6765\u8868\u793a\u7279\u6b8a\u7684\u7b26\u53f7\u6216\u884c\u4e3a\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5e38\u7528\u8f6c\u4e49\u5b57\u7b26<\/strong><\/li>\n<\/ol>\n<ul>\n<li>\n<p><strong>\u6362\u884c\u7b26<\/strong>\uff1a<code>\\n<\/code> \u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u6362\u884c\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Hello\\nWorld&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5236\u8868\u7b26<\/strong>\uff1a<code>\\t<\/code> \u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u6dfb\u52a0\u6c34\u5e73\u5236\u8868\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;Column1\\tColumn2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u53cd\u659c\u6760<\/strong>\uff1a<code>\\<\/code> \u7528\u4e8e\u6253\u5370\u53cd\u659c\u6760\u672c\u8eab\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;This is a backslash: \\\\&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5355\u5f15\u53f7\u548c\u53cc\u5f15\u53f7<\/strong>\uff1a<code>\\&#39;<\/code> \u548c <code>\\&quot;<\/code> \u7528\u4e8e\u5728\u5b57\u7b26\u4e32\u4e2d\u6253\u5370\u5355\u5f15\u53f7\u548c\u53cc\u5f15\u53f7\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;She s<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>d, \\&quot;Hello!\\&quot;&quot;)<\/p>\n<p>print(&#39;It\\&#39;s a beautiful day&#39;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u7684\u6ce8\u610f\u4e8b\u9879<\/strong><\/li>\n<\/ol>\n<p><p>\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u65f6\uff0c\u9700\u8981\u786e\u4fdd\u53cd\u659c\u6760\u548c\u540e\u7eed\u5b57\u7b26\u6b63\u786e\u7ec4\u5408\uff0c\u4ee5\u514d\u4ea7\u751f\u8bed\u6cd5\u9519\u8bef\u6216\u610f\u6599\u4e4b\u5916\u7684\u8f93\u51fa\u3002\u6b64\u5916\uff0cPython\u8fd8\u652f\u6301\u539f\u59cb\u5b57\u7b26\u4e32\uff08raw string\uff09\uff0c\u901a\u8fc7\u5728\u5b57\u7b26\u4e32\u524d\u6dfb\u52a0 <code>r<\/code> \u6216 <code>R<\/code>\uff0c\u53ef\u4ee5\u5ffd\u7565\u8f6c\u4e49\u5b57\u7b26\u7684\u4f5c\u7528\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(r&quot;This is a raw string: \\n will not create a new line&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001\u5229\u7528Unicode\u7f16\u7801<\/p>\n<\/p>\n<p><p>Unicode\u7f16\u7801\u5141\u8bb8\u5728Python\u4e2d\u6253\u5370\u5404\u79cd\u5b57\u7b26\uff0c\u5305\u62ec\u4e00\u4e9b\u4e0d\u5e38\u89c1\u7684\u7b26\u53f7\u548c\u56fd\u9645\u5316\u5b57\u7b26\u3002Unicode\u5b57\u7b26\u4ee5 <code>\\u<\/code> \u5f00\u5934\uff0c\u540e\u8ddf\u56db\u4f4d\u5341\u516d\u8fdb\u5236\u6570\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u6253\u5370\u5e38\u89c1\u7684Unicode\u5b57\u7b26<\/strong><\/li>\n<\/ol>\n<ul>\n<li>\n<p><strong>\u5e0c\u814a\u5b57\u6bcd<\/strong>\uff1a<code>\u03b1<\/code>\uff08alpha\uff09\u548c <code>\u03b2<\/code>\uff08beta\uff09\u53ef\u4ee5\u901a\u8fc7 <code>\\u03B1<\/code> \u548c <code>\\u03B2<\/code> \u6253\u5370\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;\\u03B1 and \\u03B2&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u8d27\u5e01\u7b26\u53f7<\/strong>\uff1a\u6b27\u5143\u7b26\u53f7 <code>\u20ac<\/code> \u53ef\u4ee5\u901a\u8fc7 <code>\\u20AC<\/code> \u6253\u5370\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">print(&quot;The price is 50\\u20AC&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<\/li>\n<\/ul>\n<ol start=\"2\">\n<li><strong>\u67e5\u627eUnicode\u7f16\u7801<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u4e0d\u5e38\u89c1\u7684\u7b26\u53f7\uff0c\u53ef\u4ee5\u901a\u8fc7Unicode\u5b57\u7b26\u8868\u6765\u67e5\u627e\u5bf9\u5e94\u7684\u7f16\u7801\u3002Python\u7684 <code>unicodedata<\/code> \u6a21\u5757\u4e5f\u53ef\u4ee5\u5e2e\u52a9\u67e5\u627e\u548c\u6253\u5370Unicode\u5b57\u7b26\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import unicodedata<\/p>\n<p>char_name = &quot;GREEK SMALL LETTER ALPHA&quot;<\/p>\n<p>print(unicodedata.lookup(char_name))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001\u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8f93\u51fa\u7b26\u53f7\u548c\u7279\u6b8a\u5b57\u7b26\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5305\u62ec\u767e\u5206\u53f7\uff08%\uff09\u683c\u5f0f\u5316\u3001<code>str.format()<\/code>\u65b9\u6cd5\u548cf-string\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u767e\u5206\u53f7\u683c\u5f0f\u5316<\/strong><\/li>\n<\/ol>\n<p><p>\u767e\u5206\u53f7\u683c\u5f0f\u5316\u4f7f\u7528 <code>%<\/code> \u7b26\u53f7\u6765\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff0c\u53ef\u4ee5\u7528\u4e8e\u63d2\u5165\u53d8\u91cf\u548c\u7b26\u53f7\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Alice&quot;<\/p>\n<p>print(&quot;Hello, %s!&quot; % name)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>str.format()\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p><code>str.format()<\/code>\u65b9\u6cd5\u63d0\u4f9b\u4e86\u66f4\u5f3a\u5927\u7684\u683c\u5f0f\u5316\u529f\u80fd\uff0c\u53ef\u4ee5\u63d2\u5165\u591a\u79cd\u7c7b\u578b\u7684\u7b26\u53f7\u548c\u53d8\u91cf\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Bob&quot;<\/p>\n<p>age = 25<\/p>\n<p>print(&quot;Name: {}, Age: {}&quot;.format(name, age))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>f-string<\/strong><\/li>\n<\/ol>\n<p><p>f-string\u662fPython 3.6\u5f15\u5165\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u4f7f\u7528\u524d\u7f00 <code>f<\/code>\uff0c\u80fd\u591f\u4ee5\u7b80\u6d01\u7684\u65b9\u5f0f\u63d2\u5165\u53d8\u91cf\u548c\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Charlie&quot;<\/p>\n<p>print(f&quot;Hello, {name}!&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001\u5176\u4ed6\u7b26\u53f7\u8f93\u51fa\u65b9\u6cd5<\/p>\n<\/p>\n<p><p>\u9664\u4e86\u4e0a\u8ff0\u65b9\u6cd5\u5916\uff0cPython\u8fd8\u652f\u6301\u5176\u4ed6\u7b26\u53f7\u8f93\u51fa\u65b9\u5f0f\uff0c\u5982\u4f7f\u7528ASCII\u7801\u548c\u5185\u7f6e\u5e93\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528ASCII\u7801<\/strong><\/li>\n<\/ol>\n<p><p>ASCII\u7801\u662f\u4e00\u79cd\u5b57\u7b26\u7f16\u7801\u6807\u51c6\uff0c\u53ef\u4ee5\u901a\u8fc7Python\u7684 <code>chr()<\/code> \u548c <code>ord()<\/code> \u51fd\u6570\u8fdb\u884c\u5b57\u7b26\u548c\u6570\u5b57\u4e4b\u95f4\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u6253\u5370\u5b57\u7b26A\u7684ASCII\u7801<\/p>\n<p>print(ord(&#39;A&#39;))<\/p>\n<h2><strong>\u6253\u5370ASCII\u780165\u5bf9\u5e94\u7684\u5b57\u7b26<\/strong><\/h2>\n<p>print(chr(65))<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u5185\u7f6e\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>Python\u7684\u5185\u7f6e\u5e93\u63d0\u4f9b\u4e86\u591a\u79cd\u7b26\u53f7\u548c\u5b57\u7b26\u7684\u64cd\u4f5c\u529f\u80fd\u3002\u4f8b\u5982\uff0c<code>string<\/code> \u6a21\u5757\u63d0\u4f9b\u4e86\u5e38\u89c1\u7684\u5b57\u7b26\u96c6\uff0c\u5982\u5b57\u6bcd\u548c\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><p>\u793a\u4f8b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import string<\/p>\n<p>print(string.ascii_letters)<\/p>\n<p>print(string.digits)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u603b\u7ed3<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6253\u5370\u7b26\u53f7\u548c\u7279\u6b8a\u5b57\u7b26\u7684\u65b9\u6cd5\u591a\u79cd\u591a\u6837\uff0c\u5305\u62ec\u76f4\u63a5\u6253\u5370\u3001\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3001Unicode\u7f16\u7801\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001ASCII\u7801\u4ee5\u53ca\u5185\u7f6e\u5e93\u3002\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u5f00\u53d1\u8005\u66f4\u9ad8\u6548\u5730\u8f93\u51fa\u6240\u9700\u7684\u5b57\u7b26\u548c\u7b26\u53f7\u3002\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u53ef\u4ee5\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u6700\u9002\u5408\u7684\u65b9\u6cd5\u6765\u5b9e\u73b0\u7b26\u53f7\u7684\u8f93\u51fa\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u8f93\u5165\u7279\u6b8a\u7b26\u53f7\u53ef\u4ee5\u901a\u8fc7\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u8f93\u5165\u8fd9\u4e9b\u7b26\u53f7\u6216\u8005\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u6765\u5b9e\u73b0\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u53cd\u659c\u6760\uff08\\\uff09\u6765\u8f93\u5165\u5f15\u53f7\u3001\u53cd\u659c\u6760\u672c\u8eab\u7b49\u7279\u6b8a\u7b26\u53f7\u3002\u53ef\u4ee5\u4f7f\u7528Unicode\u7f16\u7801\u6765\u8868\u793a\u5176\u4ed6\u7279\u6b8a\u7b26\u53f7\uff0c\u4f8b\u5982\uff1a<code>print(&#39;\\u03B1&#39;)<\/code>\u5c06\u8f93\u51fa\u5e0c\u814a\u5b57\u6bcd\u03b1\u3002<\/p>\n<p><strong>Python\u652f\u6301\u54ea\u4e9b\u5e38\u89c1\u7684\u7b26\u53f7\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u5e38\u89c1\u7b26\u53f7\uff0c\u5982\u6570\u5b66\u8fd0\u7b97\u7b26\uff08+\u3001-\u3001*\u3001\/\uff09\u3001\u903b\u8f91\u8fd0\u7b97\u7b26\uff08and\u3001or\u3001not\uff09\u3001\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff08==\u3001!=\u3001&lt;\u3001&gt;\uff09\u7b49\u3002\u7528\u6237\u53ef\u4ee5\u5728\u4ee3\u7801\u4e2d\u76f4\u63a5\u4f7f\u7528\u8fd9\u4e9b\u7b26\u53f7\u8fdb\u884c\u76f8\u5e94\u7684\u64cd\u4f5c\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u6253\u5370\u7b26\u53f7\u800c\u4e0d\u51fa\u73b0\u8f6c\u4e49\u5b57\u7b26\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u539f\u59cb\u5b57\u7b26\u4e32\uff08\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0ar\uff09\u6765\u907f\u514d\u8f6c\u4e49\u5b57\u7b26\u7684\u5f71\u54cd\u3002\u4f8b\u5982\uff0c<code>print(r&quot;C:\\Users\\name&quot;)<\/code>\u5c06\u6253\u5370\u51fa\u8def\u5f84\u800c\u4e0d\u4f1a\u8f6c\u4e49\u53cd\u659c\u6760\u3002\u8fd9\u6837\u7684\u65b9\u5f0f\u9002\u7528\u4e8e\u9700\u8981\u8f93\u51fa\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u8981\u8f93\u51fa\u7b26\u53f7\u6216\u7279\u6b8a\u5b57\u7b26\uff0c\u53ef\u4ee5\u4f7f\u7528\u591a\u79cd\u65b9\u6cd5\uff0c\u8fd9\u4e9b\u65b9\u6cd5\u5305\u62ec\u76f4\u63a5\u6253\u5370\u5b57\u7b26\u3001\u4f7f\u7528\u8f6c\u4e49\u5b57\u7b26\u3001\u5229\u7528Unic [&hellip;]","protected":false},"author":3,"featured_media":978928,"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\/978920"}],"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=978920"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/978920\/revisions"}],"predecessor-version":[{"id":978932,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/978920\/revisions\/978932"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/978928"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=978920"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=978920"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=978920"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}