{"id":1063219,"date":"2024-12-31T15:58:44","date_gmt":"2024-12-31T07:58:44","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1063219.html"},"modified":"2024-12-31T15:58:46","modified_gmt":"2024-12-31T07:58:46","slug":"python%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e8%8e%b7%e5%8f%96%e5%ad%97%e7%ac%a6%e4%b8%b2","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1063219.html","title":{"rendered":"python\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u5b57\u7b26\u4e32"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-docs.pingcode.com\/wp-content\/uploads\/2024\/12\/b2c79d9e-3cd2-4efa-bef0-5d10151321bd.webp?x-oss-process=image\/auto-orient,1\/format,webp\" alt=\"python\u5982\u4f55\u5b9e\u73b0\u83b7\u53d6\u5b57\u7b26\u4e32\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u83b7\u53d6\u5b57\u7b26\u4e32\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ecinput()\u51fd\u6570\u3001\u6587\u4ef6\u8bfb\u53d6\u3001\u547d\u4ee4\u884c\u53c2\u6570\u3001API\u8bf7\u6c42\u3001\u6b63\u5219\u8868\u8fbe\u5f0f\u7b49\u3002<\/strong><\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528input()\u51fd\u6570\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32<\/strong><\/li>\n<li><strong>\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32<\/strong><\/li>\n<li><strong>\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u83b7\u53d6\u5b57\u7b26\u4e32<\/strong><\/li>\n<li><strong>\u901a\u8fc7API\u8bf7\u6c42\u83b7\u53d6\u5b57\u7b26\u4e32<\/strong><\/li>\n<li><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u5b57\u7b26\u4e32<\/strong><\/li>\n<\/ol>\n<p><p>\u4e0b\u9762\u8be6\u7ec6\u4ecb\u7ecd\u5176\u4e2d\u4e00\u79cd\u65b9\u6cd5\uff1a\u4f7f\u7528input()\u51fd\u6570\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u3002input()\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u7528\u4e8e\u4ece\u6807\u51c6\u8f93\u5165\uff08\u901a\u5e38\u662f\u952e\u76d8\uff09\u8bfb\u53d6\u4e00\u884c\u6587\u672c\uff0c\u8fd4\u56de\u503c\u662f\u5b57\u7b26\u4e32\u7c7b\u578b\u3002\u901a\u8fc7input()\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u677e\u5730\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\uff1a&quot;)<\/p>\n<p>print(f&quot;\u4f60\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u662f\uff1a{user_input}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u6bb5\u4ee3\u7801\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u7b49\u5f85\u7528\u6237\u8f93\u5165\uff0c\u5f53\u7528\u6237\u6309\u4e0b\u56de\u8f66\u952e\u540e\uff0c\u8f93\u5165\u7684\u5185\u5bb9\u4f1a\u88ab\u8d4b\u503c\u7ed9\u53d8\u91cfuser_input\uff0c\u5e76\u4e14\u901a\u8fc7print\u51fd\u6570\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u7528\u4e8e\u4ea4\u4e92\u5f0f\u7684\u547d\u4ee4\u884c\u7a0b\u5e8f\u3002<\/p>\n<\/p>\n<p><p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u63a2\u8ba8\u5176\u4ed6\u51e0\u79cd\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528input()\u51fd\u6570\u8bfb\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>input()\u51fd\u6570\u662f\u6700\u7b80\u5355\u3001\u6700\u76f4\u63a5\u7684\u83b7\u53d6\u7528\u6237\u8f93\u5165\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\u3002\u5b83\u9002\u7528\u4e8e\u9700\u8981\u7528\u6237\u4ea4\u4e92\u7684\u573a\u666f\uff0c\u6bd4\u5982\u547d\u4ee4\u884c\u5de5\u5177\u3001\u7b80\u5355\u7684\u63a7\u5236\u53f0\u5e94\u7528\u7b49\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528 input() \u51fd\u6570\u83b7\u53d6\u7528\u6237\u8f93\u5165\u7684\u5b57\u7b26\u4e32<\/p>\n<p>user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u5b57\u7b26\u4e32\uff1a&quot;)<\/p>\n<p>print(f&quot;\u4f60\u8f93\u5165\u7684\u5b57\u7b26\u4e32\u662f\uff1a{user_input}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u7a0b\u5e8f\u4f1a\u7b49\u5f85\u7528\u6237\u8f93\u5165\uff0c\u5f53\u7528\u6237\u6309\u4e0b\u56de\u8f66\u952e\u540e\uff0c\u8f93\u5165\u7684\u5185\u5bb9\u4f1a\u88ab\u8d4b\u503c\u7ed9\u53d8\u91cf<code>user_input<\/code>\uff0c\u5e76\u901a\u8fc7<code>print<\/code>\u51fd\u6570\u8f93\u51fa\u5230\u5c4f\u5e55\u4e0a\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u5f88\u591a\u65f6\u5019\u6211\u4eec\u9700\u8981\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32\u6570\u636e\u3002Python\u63d0\u4f9b\u4e86\u591a\u79cd\u6587\u4ef6\u64cd\u4f5c\u7684\u65b9\u6cd5\uff0c\u4f7f\u5f97\u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32\u53d8\u5f97\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4ece\u6587\u4ef6\u4e2d\u8bfb\u53d6\u5b57\u7b26\u4e32<\/p>\n<p>with open(&quot;example.txt&quot;, &quot;r&quot;, encoding=&quot;utf-8&quot;) as file:<\/p>\n<p>    file_content = file.read()<\/p>\n<p>print(file_content)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528<code>open<\/code>\u51fd\u6570\u6253\u5f00\u4e00\u4e2a\u6587\u4ef6\uff0c\u5e76\u4f7f\u7528<code>read<\/code>\u65b9\u6cd5\u8bfb\u53d6\u6587\u4ef6\u7684\u5168\u90e8\u5185\u5bb9\u3002<code>with<\/code>\u8bed\u53e5\u786e\u4fdd\u6587\u4ef6\u5728\u64cd\u4f5c\u5b8c\u6210\u540e\u81ea\u52a8\u5173\u95ed\uff0c\u907f\u514d\u6587\u4ef6\u8d44\u6e90\u6cc4\u6f0f\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u901a\u8fc7\u547d\u4ee4\u884c\u53c2\u6570\u83b7\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5728\u7f16\u5199\u547d\u4ee4\u884c\u5de5\u5177\u65f6\uff0c\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570\u662f\u975e\u5e38\u5e38\u89c1\u7684\u9700\u6c42\u3002Python\u6807\u51c6\u5e93\u4e2d\u7684<code>sys<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import sys<\/p>\n<h2><strong>\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570<\/strong><\/h2>\n<p>if len(sys.argv) &gt; 1:<\/p>\n<p>    command_line_arg = sys.argv[1]<\/p>\n<p>    print(f&quot;\u547d\u4ee4\u884c\u53c2\u6570\u662f\uff1a{command_line_arg}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6ca1\u6709\u63d0\u4f9b\u547d\u4ee4\u884c\u53c2\u6570&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528<code>sys.argv<\/code>\u83b7\u53d6\u547d\u4ee4\u884c\u53c2\u6570\u3002<code>sys.argv<\/code>\u662f\u4e00\u4e2a\u5217\u8868\uff0c\u5176\u4e2d\u7b2c\u4e00\u4e2a\u5143\u7d20\u662f\u811a\u672c\u540d\uff0c\u540e\u7eed\u5143\u7d20\u662f\u547d\u4ee4\u884c\u4f20\u9012\u7684\u53c2\u6570\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u901a\u8fc7API\u8bf7\u6c42\u83b7\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u5728\u73b0\u4ee3\u5e94\u7528\u4e2d\uff0c\u901a\u8fc7API\u8bf7\u6c42\u83b7\u53d6\u6570\u636e\u662f\u975e\u5e38\u5e38\u89c1\u7684\u9700\u6c42\u3002Python\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5e93\u6765\u5904\u7406HTTP\u8bf7\u6c42\uff0c\u5982<code>requests<\/code>\u5e93\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import requests<\/p>\n<h2><strong>\u901a\u8fc7API\u8bf7\u6c42\u83b7\u53d6\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>response = requests.get(&quot;https:\/\/api.example.com\/data&quot;)<\/p>\n<p>if response.status_code == 200:<\/p>\n<p>    api_data = response.text<\/p>\n<p>    print(api_data)<\/p>\n<p>else:<\/p>\n<p>    print(f&quot;\u8bf7\u6c42\u5931\u8d25\uff0c\u72b6\u6001\u7801\uff1a{response.status_code}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528<code>requests.get<\/code>\u65b9\u6cd5\u53d1\u9001HTTP GET\u8bf7\u6c42\uff0c\u5e76\u901a\u8fc7<code>response.text<\/code>\u83b7\u53d6\u54cd\u5e94\u7684\u6587\u672c\u5185\u5bb9\u3002\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0c\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\u5e94\u5904\u7406\u5404\u79cd\u5f02\u5e38\u60c5\u51b5\uff0c\u5982\u7f51\u7edc\u9519\u8bef\u3001\u8d85\u65f6\u7b49\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u5b57\u7b26\u4e32<\/h3>\n<\/p>\n<p><p>\u6b63\u5219\u8868\u8fbe\u5f0f\u662f\u4e00\u79cd\u5f3a\u5927\u7684\u5de5\u5177\uff0c\u7528\u4e8e\u5339\u914d\u548c\u63d0\u53d6\u5b57\u7b26\u4e32\u4e2d\u7684\u7279\u5b9a\u6a21\u5f0f\u3002Python\u6807\u51c6\u5e93\u4e2d\u7684<code>re<\/code>\u6a21\u5757\u63d0\u4f9b\u4e86\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u652f\u6301\u3002<\/p>\n<\/p>\n<p><h4>\u793a\u4f8b\u4ee3\u7801<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\">import re<\/p>\n<h2><strong>\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u4ece\u6587\u672c\u4e2d\u63d0\u53d6\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>text = &quot;\u6211\u7684\u7535\u8bdd\u53f7\u7801\u662f\uff1a123-456-7890&quot;<\/p>\n<p>pattern = r&quot;\\d{3}-\\d{3}-\\d{4}&quot;<\/p>\n<p>match = re.search(pattern, text)<\/p>\n<p>if match:<\/p>\n<p>    phone_number = match.group()<\/p>\n<p>    print(f&quot;\u63d0\u53d6\u5230\u7684\u7535\u8bdd\u53f7\u7801\u662f\uff1a{phone_number}&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u6ca1\u6709\u5339\u914d\u5230\u7535\u8bdd\u53f7\u7801&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u4f7f\u7528<code>re.search<\/code>\u65b9\u6cd5\u67e5\u627e\u6587\u672c\u4e2d\u5339\u914d\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u90e8\u5206\uff0c\u5e76\u901a\u8fc7<code>match.group()<\/code>\u65b9\u6cd5\u83b7\u53d6\u5339\u914d\u5230\u7684\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u7ed3\u8bba<\/h3>\n<\/p>\n<p><p>\u901a\u8fc7\u4e0a\u8ff0\u51e0\u79cd\u65b9\u6cd5\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Python\u4e2d\u5b9e\u73b0\u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u529f\u80fd\u3002\u4e0d\u540c\u7684\u65b9\u6cd5\u9002\u7528\u4e8e\u4e0d\u540c\u7684\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u7a0b\u5e8f\u7684\u6548\u7387\u548c\u53ef\u7ef4\u62a4\u6027\u3002<strong>\u65e0\u8bba\u662f\u901a\u8fc7\u7528\u6237\u8f93\u5165\u3001\u6587\u4ef6\u8bfb\u53d6\u3001\u547d\u4ee4\u884c\u53c2\u6570\u3001API\u8bf7\u6c42\u8fd8\u662f\u6b63\u5219\u8868\u8fbe\u5f0f\u63d0\u53d6\uff0cPython\u90fd\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u5de5\u5177\u6765\u6ee1\u8db3\u6211\u4eec\u7684\u9700\u6c42\u3002<\/strong><\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u63d0\u53d6\u7279\u5b9a\u5b57\u7b26\u6216\u5b50\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5207\u7247\u3001\u5b57\u7b26\u4e32\u65b9\u6cd5\uff08\u5982<code>find()<\/code>\u3001<code>index()<\/code>\u3001<code>split()<\/code>\u7b49\uff09\u6216\u6b63\u5219\u8868\u8fbe\u5f0f\u6765\u63d0\u53d6\u7279\u5b9a\u5b57\u7b26\u6216\u5b50\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>string[start:end]<\/code>\u53ef\u4ee5\u63d0\u53d6\u4ece<code>start<\/code>\u5230<code>end<\/code>\u7d22\u5f15\u4e4b\u95f4\u7684\u5b57\u7b26\u3002\u5982\u679c\u9700\u8981\u67e5\u627e\u7279\u5b9a\u5b57\u7b26\u7684\u4f4d\u7f6e\uff0c\u53ef\u4ee5\u4f7f\u7528<code>string.find(&#39;character&#39;)<\/code>\uff0c\u5b83\u4f1a\u8fd4\u56de\u5b57\u7b26\u9996\u6b21\u51fa\u73b0\u7684\u7d22\u5f15\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u5199\uff1f<\/strong><br \/>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u5b57\u7b26\u4e32\u7684\u5927\u5c0f\u5199\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>string.lower()<\/code>\u53ef\u4ee5\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u5c0f\u5199\uff0c\u800c<code>string.upper()<\/code>\u5219\u53ef\u4ee5\u5c06\u5176\u8f6c\u6362\u4e3a\u5927\u5199\u3002\u5982\u679c\u60f3\u8981\u5c06\u5b57\u7b26\u4e32\u7684\u9996\u5b57\u6bcd\u5927\u5199\uff0c\u53ef\u4ee5\u4f7f\u7528<code>string.capitalize()<\/code>\u65b9\u6cd5\u3002\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u573a\u666f\uff0c\u53ef\u4ee5\u4f7f\u7528<code>string.title()<\/code>\u5c06\u6bcf\u4e2a\u5355\u8bcd\u7684\u9996\u5b57\u6bcd\u5927\u5199\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u8fde\u63a5\u591a\u4e2a\u5b57\u7b26\u4e32\uff1f<\/strong><br \/>\u8fde\u63a5\u591a\u4e2a\u5b57\u7b26\u4e32\u53ef\u4ee5\u4f7f\u7528<code>+<\/code>\u8fd0\u7b97\u7b26\u6216<code>join()<\/code>\u65b9\u6cd5\u3002\u4f7f\u7528<code>+<\/code>\u8fd0\u7b97\u7b26\u53ef\u4ee5\u76f4\u63a5\u5c06\u5b57\u7b26\u4e32\u62fc\u63a5\u5728\u4e00\u8d77\uff0c\u4f8b\u5982<code>str1 + str2<\/code>\u3002\u800c<code>join()<\/code>\u65b9\u6cd5\u66f4\u9002\u5408\u8fde\u63a5\u4e00\u4e2a\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u4f8b\u5982<code>&#39; &#39;.join(list_of_strings)<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u5728\u6bcf\u4e2a\u5b57\u7b26\u4e32\u4e4b\u95f4\u63d2\u5165\u6307\u5b9a\u7684\u5206\u9694\u7b26\uff0c\u5982\u7a7a\u683c\u3001\u9017\u53f7\u7b49\uff0c\u4fbf\u4e8e\u751f\u6210\u683c\u5f0f\u5316\u7684\u8f93\u51fa\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u591a\u79cd\u65b9\u5f0f\u5b9e\u73b0\u83b7\u53d6\u5b57\u7b26\u4e32\u3002\u5e38\u89c1\u7684\u65b9\u6cd5\u5305\u62ecinput()\u51fd\u6570\u3001\u6587\u4ef6\u8bfb\u53d6\u3001\u547d\u4ee4\u884c\u53c2\u6570\u3001AP [&hellip;]","protected":false},"author":3,"featured_media":1063224,"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\/1063219"}],"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=1063219"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1063219\/revisions"}],"predecessor-version":[{"id":1063225,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1063219\/revisions\/1063225"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1063224"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1063219"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1063219"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1063219"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}