{"id":997930,"date":"2024-12-27T09:28:17","date_gmt":"2024-12-27T01:28:17","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/997930.html"},"modified":"2024-12-27T09:28:19","modified_gmt":"2024-12-27T01:28:19","slug":"python%e5%a6%82%e4%bd%95%e5%8a%a0%e8%bd%bdstr%e5%87%bd%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/997930.html","title":{"rendered":"python\u5982\u4f55\u52a0\u8f7dstr\u51fd\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25073541\/00d65482-9cbc-437b-bdd5-bb4c5d4f8c19.webp\" alt=\"python\u5982\u4f55\u52a0\u8f7dstr\u51fd\u6570\" \/><\/p>\n<p><p> \u5728Python\u4e2d\uff0c\u52a0\u8f7d<code>str<\/code>\u51fd\u6570\u5e76\u4e0d\u9700\u8981\u7279\u522b\u7684\u5bfc\u5165\u6216\u52a0\u8f7d\u64cd\u4f5c\uff0c\u56e0\u4e3a<code>str<\/code>\u51fd\u6570\u662fPython\u5185\u7f6e\u51fd\u6570\u7684\u4e00\u90e8\u5206\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528\u3002<strong>\u8981\u4f7f\u7528<code>str<\/code>\u51fd\u6570\uff0c\u53ea\u9700\u8981\u8c03\u7528\u5b83\u5e76\u4f20\u9012\u4e00\u4e2a\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\u5373\u53ef\uff0cstr\u51fd\u6570\u7528\u4e8e\u5c06\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5f62\u5f0f\u3001\u662fPython\u4e2d\u5904\u7406\u6587\u672c\u6570\u636e\u65f6\u7684\u4e00\u4e2a\u57fa\u672c\u5de5\u5177\u3002<\/strong>\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd<code>str<\/code>\u51fd\u6570\u7684\u4f7f\u7528\u65b9\u6cd5\u4ee5\u53ca\u5728\u4e0d\u540c\u573a\u666f\u4e0b\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001STR\u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5<\/p>\n<\/p>\n<p><p><code>str<\/code>\u51fd\u6570\u7684\u4e3b\u8981\u529f\u80fd\u662f\u5c06\u4e00\u4e2a\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5f62\u5f0f\u3002\u5b83\u63a5\u53d7\u4e00\u4e2a\u53c2\u6570\uff0c\u8be5\u53c2\u6570\u53ef\u4ee5\u662f\u4efb\u4f55\u6570\u636e\u7c7b\u578b\u7684\u5bf9\u8c61\u3002\u8c03\u7528<code>str<\/code>\u51fd\u6570\u540e\uff0c\u5c06\u8fd4\u56de\u5bf9\u8c61\u7684\u5b57\u7b26\u4e32\u8868\u793a\u3002\u4ee5\u4e0b\u662f<code>str<\/code>\u51fd\u6570\u7684\u57fa\u672c\u7528\u6cd5\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/p>\n<p>num = 123<\/p>\n<p>num_str = str(num)<\/p>\n<p>print(num_str)  # \u8f93\u51fa: &#39;123&#39;<\/p>\n<h2><strong>\u5c06\u6d6e\u70b9\u6570\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>flt = 3.14<\/p>\n<p>flt_str = str(flt)<\/p>\n<p>print(flt_str)  # \u8f93\u51fa: &#39;3.14&#39;<\/p>\n<h2><strong>\u5c06\u5e03\u5c14\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32<\/strong><\/h2>\n<p>bool_val = True<\/p>\n<p>bool_str = str(bool_val)<\/p>\n<p>print(bool_str)  # \u8f93\u51fa: &#39;True&#39;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e8c\u3001STR\u51fd\u6570\u5728\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e2d\u7684\u5e94\u7528<\/p>\n<\/p>\n<p><p>\u5728Python\u7f16\u7a0b\u4e2d\uff0c\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u662f\u4e00\u4e2a\u5e38\u89c1\u7684\u64cd\u4f5c\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u7528\u6237\u8f93\u5165\u3001\u6587\u4ef6\u8bfb\u53d6\u548c\u6570\u636e\u5b58\u50a8\u65f6\u3002<code>str<\/code>\u51fd\u6570\u53ef\u4ee5\u5728\u8fd9\u4e9b\u573a\u666f\u4e2d\u53d1\u6325\u91cd\u8981\u4f5c\u7528\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7528\u6237\u8f93\u5165\u5904\u7406<\/strong><\/li>\n<\/ol>\n<p><p>\u5f53\u4ece\u7528\u6237\u83b7\u53d6\u8f93\u5165\u65f6\uff0c\u901a\u5e38\u4f1a\u4f7f\u7528<code>input()<\/code>\u51fd\u6570\uff0c\u8be5\u51fd\u6570\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u4e32\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528<code>str<\/code>\u51fd\u6570\u5c06\u5176\u4ed6\u6570\u636e\u7c7b\u578b\u7684\u503c\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5f62\u5f0f\uff0c\u4ee5\u4fbf\u4e0e\u7528\u6237\u8f93\u5165\u8fdb\u884c\u6bd4\u8f83\u6216\u62fc\u63a5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u6574\u6570\u4e0e\u7528\u6237\u8f93\u5165\u8fdb\u884c\u6bd4\u8f83<\/p>\n<p>user_input = input(&quot;\u8bf7\u8f93\u5165\u4e00\u4e2a\u6570\u5b57\uff1a&quot;)<\/p>\n<p>number = 100<\/p>\n<p>if user_input == str(number):<\/p>\n<p>    print(&quot;\u8f93\u5165\u4e0e\u6570\u5b57\u76f8\u540c\uff01&quot;)<\/p>\n<p>else:<\/p>\n<p>    print(&quot;\u8f93\u5165\u4e0d\u540c\u3002&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6587\u4ef6\u5199\u5165<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u5c06\u6570\u636e\u5199\u5165\u6587\u4ef6\u65f6\uff0c\u901a\u5e38\u9700\u8981\u5c06\u6570\u636e\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u683c\u5f0f\u3002<code>str<\/code>\u51fd\u6570\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5c06\u5404\u79cd\u7c7b\u578b\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u4ee5\u4fbf\u5199\u5165\u6587\u4ef6\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u5c06\u5217\u8868\u4e2d\u7684\u6570\u5b57\u5199\u5165\u6587\u4ef6<\/p>\n<p>numbers = [1, 2, 3, 4, 5]<\/p>\n<p>with open(&quot;numbers.txt&quot;, &quot;w&quot;) as file:<\/p>\n<p>    for num in numbers:<\/p>\n<p>        file.write(str(num) + &quot;\\n&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e09\u3001STR\u51fd\u6570\u4e0e\u81ea\u5b9a\u4e49\u5bf9\u8c61<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6211\u4eec\u53ef\u4ee5\u5b9a\u4e49\u81ea\u5df1\u7684\u7c7b\u3002\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u5bf9\u8c61\uff0c\u4f7f\u7528<code>str<\/code>\u51fd\u6570\u65f6\uff0c\u5c06\u8c03\u7528\u5bf9\u8c61\u7684<code>__str__()<\/code>\u65b9\u6cd5\u3002\u56e0\u6b64\uff0c\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u91cd\u5199<code>__str__()<\/code>\u65b9\u6cd5\u6765\u81ea\u5b9a\u4e49\u5bf9\u8c61\u7684\u5b57\u7b26\u4e32\u8868\u793a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Person:<\/p>\n<p>    def __init__(self, name, age):<\/p>\n<p>        self.name = name<\/p>\n<p>        self.age = age<\/p>\n<p>    def __str__(self):<\/p>\n<p>        return f&quot;\u59d3\u540d\uff1a{self.name}, \u5e74\u9f84\uff1a{self.age}&quot;<\/p>\n<p>person = Person(&quot;Alice&quot;, 30)<\/p>\n<p>print(str(person))  # \u8f93\u51fa: \u59d3\u540d\uff1aAlice, \u5e74\u9f84\uff1a30<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u56db\u3001STR\u51fd\u6570\u5728\u683c\u5f0f\u5316\u8f93\u51fa\u4e2d\u7684\u5e94\u7528<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u683c\u5f0f\u5316\u8f93\u51fa\u662f\u4e00\u4e2a\u5e38\u89c1\u9700\u6c42\u3002\u4f7f\u7528<code>str<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u53d8\u91cf\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u4ee5\u4fbf\u4e0e\u5176\u4ed6\u5b57\u7b26\u4e32\u62fc\u63a5\u6216\u8fdb\u884c\u683c\u5f0f\u5316\u8f93\u51fa\u3002\u6211\u4eec\u53ef\u4ee5\u7ed3\u5408<code>str<\/code>\u51fd\u6570\u548c\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08\u5982f-string\uff09\u5b9e\u73b0\u66f4\u7075\u6d3b\u7684\u8f93\u51fa\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>f-string\u683c\u5f0f\u5316<\/strong><\/li>\n<\/ol>\n<p><p>f-string\u662f\u4e00\u79cd\u7b80\u6d01\u6613\u8bfb\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u5f0f\uff0c\u4f7f\u7528<code>str<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u53d8\u91cf\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5f62\u5f0f\uff0c\u4fbf\u4e8e\u4e0e\u5176\u4ed6\u5b57\u7b26\u4e32\u62fc\u63a5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">name = &quot;Bob&quot;<\/p>\n<p>age = 25<\/p>\n<p>output = f&quot;\u59d3\u540d\uff1a{name}, \u5e74\u9f84\uff1a{str(age)}&quot;<\/p>\n<p>print(output)  # \u8f93\u51fa: \u59d3\u540d\uff1aBob, \u5e74\u9f84\uff1a25<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u683c\u5f0f\u5316\u8f93\u51fa<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u4e00\u4e9b\u590d\u6742\u7684\u8f93\u51fa\u573a\u666f\u4e2d\uff0c\u53ef\u4ee5\u7ed3\u5408<code>str<\/code>\u51fd\u6570\u548c\u5176\u4ed6\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5b9e\u73b0\u66f4\u7075\u6d3b\u7684\u5b57\u7b26\u4e32\u8f93\u51fa\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u4f7f\u7528format\u65b9\u6cd5\u8fdb\u884c\u683c\u5f0f\u5316\u8f93\u51fa<\/p>\n<p>height = 180.5<\/p>\n<p>weight = 75<\/p>\n<p>output = &quot;\u8eab\u9ad8\uff1a{}, \u4f53\u91cd\uff1a{}&quot;.format(str(height), str(weight))<\/p>\n<p>print(output)  # \u8f93\u51fa: \u8eab\u9ad8\uff1a180.5, \u4f53\u91cd\uff1a75<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e94\u3001STR\u51fd\u6570\u7684\u5c40\u9650\u6027\u4e0e\u6ce8\u610f\u4e8b\u9879<\/p>\n<\/p>\n<p><p>\u867d\u7136<code>str<\/code>\u51fd\u6570\u5728Python\u4e2d\u975e\u5e38\u6709\u7528\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\u4e5f\u9700\u8981\u6ce8\u610f\u5176\u5c40\u9650\u6027\u548c\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u5927\u6570\u636e\u91cf\u7684\u6027\u80fd\u95ee\u9898<\/strong><\/li>\n<\/ol>\n<p><p>\u5f53\u5904\u7406\u975e\u5e38\u5927\u7684\u6570\u636e\u91cf\u65f6\uff0c<code>str<\/code>\u51fd\u6570\u53ef\u80fd\u4f1a\u5bfc\u81f4\u6027\u80fd\u95ee\u9898\u3002\u8fd9\u662f\u56e0\u4e3a\u5c06\u5927\u91cf\u6570\u636e\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u53ef\u80fd\u9700\u8981\u8017\u8d39\u5927\u91cf\u5185\u5b58\u548c\u8ba1\u7b97\u8d44\u6e90\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u5efa\u8bae\u4f7f\u7528\u66f4\u9ad8\u6548\u7684\u6570\u636e\u5904\u7406\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u6ce8\u610f\u5bf9\u8c61\u7684<code>__str__()<\/code>\u5b9e\u73b0<\/strong><\/li>\n<\/ol>\n<p><p>\u5bf9\u4e8e\u81ea\u5b9a\u4e49\u5bf9\u8c61\uff0c<code>str<\/code>\u51fd\u6570\u4f9d\u8d56\u4e8e\u5bf9\u8c61\u7684<code>__str__()<\/code>\u65b9\u6cd5\u3002\u56e0\u6b64\uff0c\u5728\u5b9e\u73b0\u81ea\u5b9a\u4e49\u7c7b\u65f6\uff0c\u9700\u8981\u786e\u4fdd<code>__str__()<\/code>\u65b9\u6cd5\u6b63\u786e\u5b9e\u73b0\uff0c\u4ee5\u8fd4\u56de\u5bf9\u8c61\u7684\u6b63\u786e\u5b57\u7b26\u4e32\u8868\u793a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">class Product:<\/p>\n<p>    def __init__(self, name, price):<\/p>\n<p>        self.name = name<\/p>\n<p>        self.price = price<\/p>\n<p>    # \u786e\u4fdd__str__()\u65b9\u6cd5\u8fd4\u56de\u6b63\u786e\u7684\u5b57\u7b26\u4e32\u8868\u793a<\/p>\n<p>    def __str__(self):<\/p>\n<p>        return f&quot;\u4ea7\u54c1\u540d\u79f0\uff1a{self.name}, \u4ef7\u683c\uff1a{self.price}&quot;<\/p>\n<p>product = Product(&quot;Laptop&quot;, 999.99)<\/p>\n<p>print(str(product))  # \u8f93\u51fa: \u4ea7\u54c1\u540d\u79f0\uff1aLaptop, \u4ef7\u683c\uff1a999.99<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u516d\u3001\u603b\u7ed3<\/p>\n<\/p>\n<p><p><code>str<\/code>\u51fd\u6570\u662fPython\u4e2d\u4e00\u4e2a\u975e\u5e38\u91cd\u8981\u7684\u5185\u7f6e\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u5bf9\u8c61\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5f62\u5f0f\u3002\u5b83\u5728\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u3001\u683c\u5f0f\u5316\u8f93\u51fa\u3001\u81ea\u5b9a\u4e49\u5bf9\u8c61\u5b57\u7b26\u4e32\u8868\u793a\u7b49\u65b9\u9762\u53d1\u6325\u7740\u91cd\u8981\u4f5c\u7528\u3002\u5728\u4f7f\u7528<code>str<\/code>\u51fd\u6570\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u5176\u5c40\u9650\u6027\uff0c\u5c24\u5176\u662f\u5728\u5904\u7406\u5927\u6570\u636e\u91cf\u65f6\u7684\u6027\u80fd\u95ee\u9898\u3002\u901a\u8fc7\u5408\u7406\u4f7f\u7528<code>str<\/code>\u51fd\u6570\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Python\u7f16\u7a0b\u4e2d\u66f4\u6709\u6548\u5730\u5904\u7406\u548c\u8f93\u51fa\u5b57\u7b26\u4e32\u6570\u636e\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u4f7f\u7528str\u51fd\u6570\u8fdb\u884c\u7c7b\u578b\u8f6c\u6362\uff1f<\/strong><br \/>str\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u4e00\u4e2a\u51fd\u6570\uff0c\u4e3b\u8981\u7528\u4e8e\u5c06\u5176\u4ed6\u6570\u636e\u7c7b\u578b\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u6bd4\u5982\uff0c\u5c06\u6574\u6570\u3001\u6d6e\u70b9\u6570\u6216\u8005\u5217\u8868\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u4f7f\u7528\u65b9\u5f0f\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5c06\u9700\u8981\u8f6c\u6362\u7684\u5bf9\u8c61\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012\u7ed9str\u51fd\u6570\u3002\u4f8b\u5982\uff0c<code>str(123)<\/code>\u5c06\u8fd4\u56de\u5b57\u7b26\u4e32&#39;123&#39;\u3002<\/p>\n<p><strong>str\u51fd\u6570\u80fd\u5904\u7406\u54ea\u4e9b\u6570\u636e\u7c7b\u578b\uff1f<\/strong><br \/>str\u51fd\u6570\u53ef\u4ee5\u5904\u7406\u591a\u79cd\u6570\u636e\u7c7b\u578b\uff0c\u5305\u62ec\u6574\u6570\u3001\u6d6e\u70b9\u6570\u3001\u5e03\u5c14\u503c\u3001\u5217\u8868\u3001\u5143\u7ec4\u7b49\u51e0\u4e4e\u6240\u6709Python\u652f\u6301\u7684\u6570\u636e\u7c7b\u578b\u3002\u5373\u4f7f\u662f\u81ea\u5b9a\u4e49\u5bf9\u8c61\uff0c\u53ea\u8981\u5b83\u4eec\u5b9e\u73b0\u4e86<code>__str__()<\/code>\u65b9\u6cd5\uff0cstr\u51fd\u6570\u4e5f\u80fd\u8fd4\u56de\u5176\u5b57\u7b26\u4e32\u8868\u793a\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0cstr\u51fd\u6570\u7684\u8fd4\u56de\u503c\u6709\u4ec0\u4e48\u7279\u6b8a\u7528\u9014\uff1f<\/strong><br \/>str\u51fd\u6570\u8fd4\u56de\u7684\u5b57\u7b26\u4e32\u53ef\u4ee5\u7528\u4e8e\u591a\u79cd\u573a\u666f\uff0c\u4f8b\u5982\u65e5\u5fd7\u8bb0\u5f55\u3001\u7528\u6237\u754c\u9762\u5c55\u793a\u4ee5\u53ca\u6570\u636e\u5b58\u50a8\u7b49\u3002\u901a\u8fc7\u5c06\u4e0d\u540c\u7c7b\u578b\u7684\u6570\u636e\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5f00\u53d1\u8005\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u5904\u7406\u548c\u5c55\u793a\u4fe1\u606f\u3002\u6b64\u5916\uff0c\u5bf9\u4e8e\u8c03\u8bd5\u6765\u8bf4\uff0c\u5b57\u7b26\u4e32\u5f62\u5f0f\u7684\u8f93\u51fa\u80fd\u591f\u63d0\u4f9b\u66f4\u76f4\u89c2\u7684\u7406\u89e3\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u52a0\u8f7dstr\u51fd\u6570\u5e76\u4e0d\u9700\u8981\u7279\u522b\u7684\u5bfc\u5165\u6216\u52a0\u8f7d\u64cd\u4f5c\uff0c\u56e0\u4e3astr\u51fd\u6570\u662fPython\u5185\u7f6e\u51fd\u6570\u7684\u4e00\u90e8\u5206\uff0c\u53ef [&hellip;]","protected":false},"author":3,"featured_media":997934,"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\/997930"}],"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=997930"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997930\/revisions"}],"predecessor-version":[{"id":997936,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/997930\/revisions\/997936"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/997934"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=997930"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=997930"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=997930"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}