{"id":1010387,"date":"2024-12-27T11:20:32","date_gmt":"2024-12-27T03:20:32","guid":{"rendered":""},"modified":"2024-12-27T11:20:34","modified_gmt":"2024-12-27T03:20:34","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%95%b0%e5%ad%97%e8%bf%9e%e6%8e%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1010387.html","title":{"rendered":"python\u4e2d\u5982\u4f55\u6570\u5b57\u8fde\u63a5"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25084940\/9a669ad8-c6a7-49f8-81e9-0ff48c88403c.webp\" alt=\"python\u4e2d\u5982\u4f55\u6570\u5b57\u8fde\u63a5\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\uff0c\u6570\u5b57\u8fde\u63a5\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u8f6c\u6362\u3001\u6570\u5b66\u8fd0\u7b97\u548c\u4f7f\u7528\u683c\u5f0f\u5316\u65b9\u6cd5\u7b49\u65b9\u5f0f\u5b9e\u73b0<\/strong>\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u540e\u8fdb\u884c\u8fde\u63a5\u3001\u4f7f\u7528\u6570\u5b66\u8fd0\u7b97\u7b26\u5c06\u6570\u5b57\u62fc\u63a5\u4e3a\u4e00\u4e2a\u6574\u4f53\u3002\u5b57\u7b26\u4e32\u8f6c\u6362\u65b9\u6cd5\u7b80\u5355\u76f4\u89c2\uff0c\u800c\u6570\u5b66\u8fd0\u7b97\u5219\u9002\u7528\u4e8e\u7279\u5b9a\u7684\u60c5\u51b5\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><p>\u4e00\u3001\u5b57\u7b26\u4e32\u8f6c\u6362\u8fde\u63a5<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u6700\u76f4\u63a5\u7684\u65b9\u6cd5\u4e4b\u4e00\u662f\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u8fdb\u884c\u5b57\u7b26\u4e32\u8fde\u63a5\u3002\u8fd9\u6837\u505a\u7684\u597d\u5904\u662f\u4ee3\u7801\u7b80\u5355\u4e14\u6613\u4e8e\u7406\u89e3\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u4f7f\u7528str()\u51fd\u6570<\/strong><\/li>\n<\/ol>\n<p><p>Python\u63d0\u4f9b\u4e86\u5185\u7f6e\u7684<code>str()<\/code>\u51fd\u6570\uff0c\u53ef\u4ee5\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u4e24\u4e2a\u6216\u591a\u4e2a\u6570\u5b57\u8fde\u63a5\u5728\u4e00\u8d77\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num1 = 123<\/p>\n<p>num2 = 456<\/p>\n<p>result = str(num1) + str(num2)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u8ff0\u4ee3\u7801\u4e2d\uff0c\u6211\u4eec\u5c06\u4e24\u4e2a\u6574\u6570<code>num1<\/code>\u548c<code>num2<\/code>\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u5e76\u4f7f\u7528\u52a0\u53f7<code>+<\/code>\u8fdb\u884c\u8fde\u63a5\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32<\/strong><\/li>\n<\/ol>\n<p><p>Python\u7684\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u529f\u80fd\u975e\u5e38\u5f3a\u5927\uff0c\u4f7f\u7528\u5b83\u53ef\u4ee5\u66f4\u4f18\u96c5\u5730\u8fde\u63a5\u6570\u5b57\u3002Python 3.6\u5f15\u5165\u4e86f-strings\uff0c\u63d0\u4f9b\u4e86\u4e00\u79cd\u7b80\u6d01\u7684\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u8bed\u6cd5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num1 = 123<\/p>\n<p>num2 = 456<\/p>\n<p>result = f&quot;{num1}{num2}&quot;<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528f-strings\u53ef\u4ee5\u5728\u5b57\u7b26\u4e32\u4e2d\u5d4c\u5165\u8868\u8fbe\u5f0f\uff0c\u4f7f\u5f97\u4ee3\u7801\u66f4\u5177\u53ef\u8bfb\u6027\u3002<\/p>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u4f7f\u7528join()\u65b9\u6cd5<\/strong><\/li>\n<\/ol>\n<p><p>\u867d\u7136<code>join()<\/code>\u65b9\u6cd5\u901a\u5e38\u7528\u4e8e\u8fde\u63a5\u5b57\u7b26\u4e32\u5217\u8868\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u6570\u5b57\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num_list = [123, 456]<\/p>\n<p>result = &#39;&#39;.join(str(num) for num in num_list)<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u5c06\u6570\u5b57\u5217\u8868\u4e2d\u7684\u6bcf\u4e2a\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u8fde\u63a5\u5b83\u4eec\u3002<\/p>\n<\/p>\n<p><p>\u4e8c\u3001\u6570\u5b66\u8fd0\u7b97\u8fde\u63a5<\/p>\n<\/p>\n<p><p>\u6570\u5b66\u8fd0\u7b97\u8fde\u63a5\u4e3b\u8981\u9002\u7528\u4e8e\u5c06\u6570\u5b57\u5408\u5e76\u4e3a\u4e00\u4e2a\u6570\u5b57\u7684\u573a\u666f\uff0c\u4f8b\u5982\u5c06123\u548c456\u5408\u5e76\u4e3a123456\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u7b80\u5355\u7684\u6570\u5b66\u8fd0\u7b97<\/strong><\/li>\n<\/ol>\n<p><p>\u901a\u8fc7\u7b80\u5355\u7684\u6570\u5b66\u8fd0\u7b97\uff0c\u53ef\u4ee5\u5c06\u4e24\u6570\u5408\u5e76\u4e3a\u4e00\u4e2a\u6570\u5b57\u3002\u8fd9\u8981\u6c42\u6570\u5b57\u7684\u4f4d\u6570\u5df2\u77e5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">num1 = 123<\/p>\n<p>num2 = 456<\/p>\n<p>result = num1 * 1000 + num2  # \u5047\u8bbenum2\u662f\u4e09\u4f4d\u6570<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u5408\u4e8e\u5904\u7406\u56fa\u5b9a\u4f4d\u6570\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>\u52a8\u6001\u8ba1\u7b97\u4f4d\u6570<\/strong><\/li>\n<\/ol>\n<p><p>\u5982\u679c\u6570\u5b57\u7684\u4f4d\u6570\u4e0d\u56fa\u5b9a\uff0c\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u6216\u5bf9\u6570\u51fd\u6570\u6765\u8ba1\u7b97\u4f4d\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import math<\/p>\n<p>num1 = 123<\/p>\n<p>num2 = 456<\/p>\n<p>num2_length = int(math.log10(num2)) + 1<\/p>\n<p>result = num1 * (10  num2_length) + num2<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u5904\u7406\u4e0d\u540c\u4f4d\u6570\u7684\u6570\u5b57\uff0c\u4f46\u4ee3\u7801\u76f8\u5bf9\u590d\u6742\u3002<\/p>\n<\/p>\n<p><p>\u4e09\u3001\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93<\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u7b2c\u4e09\u65b9\u5e93\u6765\u5b9e\u73b0\u6570\u5b57\u8fde\u63a5\u3002\u867d\u7136\u8fd9\u4e9b\u5e93\u4e3b\u8981\u7528\u4e8e\u5b57\u7b26\u4e32\u5904\u7406\uff0c\u4f46\u4e5f\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u529f\u80fd\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>NumPy\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>NumPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u503c\u8ba1\u7b97\u5e93\uff0c\u867d\u7136\u4e3b\u8981\u7528\u4e8e\u6570\u7ec4\u548c\u77e9\u9635\u64cd\u4f5c\uff0c\u4f46\u4e5f\u53ef\u4ee5\u7528\u4e8e\u8fde\u63a5\u6570\u7ec4\u4e2d\u7684\u6570\u5b57\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import numpy as np<\/p>\n<p>num_array = np.array([123, 456])<\/p>\n<p>result = &#39;&#39;.join(map(str, num_array))<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c\u6211\u4eec\u4f7f\u7528<code>map()<\/code>\u51fd\u6570\u5c06\u6570\u7ec4\u4e2d\u7684\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u8fde\u63a5\u5b83\u4eec\u3002<\/p>\n<\/p>\n<ol start=\"2\">\n<li><strong>Pandas\u5e93<\/strong><\/li>\n<\/ol>\n<p><p>Pandas\u662f\u4e00\u4e2a\u6570\u636e\u5206\u6790\u5e93\uff0c\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u6570\u636e\u5904\u7406\u529f\u80fd\u3002\u5b83\u53ef\u4ee5\u7528\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u96c6\u4e2d\u7684\u6570\u5b57\u8fde\u63a5\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">import pandas as pd<\/p>\n<p>data = pd.Series([123, 456])<\/p>\n<p>result = &#39;&#39;.join(data.astype(str))<\/p>\n<p>print(result)  # \u8f93\u51fa\uff1a123456<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>Pandas\u63d0\u4f9b\u4e86<code>astype()<\/code>\u65b9\u6cd5\uff0c\u53ef\u4ee5\u8f7b\u677e\u5730\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><p>\u56db\u3001\u5e94\u7528\u573a\u666f<\/p>\n<\/p>\n<p><p>\u6570\u5b57\u8fde\u63a5\u5728\u8bb8\u591a\u5b9e\u9645\u5e94\u7528\u4e2d\u90fd\u6709\u6d89\u53ca\uff0c\u5982\u751f\u6210\u552f\u4e00\u6807\u8bc6\u7b26\u3001\u683c\u5f0f\u5316\u8f93\u51fa\u3001\u6570\u636e\u5408\u5e76\u7b49\u3002\u4e86\u89e3\u4e0d\u540c\u7684\u65b9\u6cd5\u53ef\u4ee5\u5e2e\u52a9\u6211\u4eec\u5728\u4e0d\u540c\u7684\u573a\u666f\u4e2d\u9009\u62e9\u5408\u9002\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<ol>\n<li><strong>\u751f\u6210\u552f\u4e00\u6807\u8bc6\u7b26<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u67d0\u4e9b\u5e94\u7528\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u6839\u636e\u591a\u4e2a\u6570\u636e\u751f\u6210\u552f\u4e00\u6807\u8bc6\u7b26\u3002\u901a\u8fc7\u6570\u5b57\u8fde\u63a5\u53ef\u4ee5\u5b9e\u73b0\u8fd9\u4e00\u76ee\u7684\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">user_id = 123<\/p>\n<p>timestamp = 456789<\/p>\n<p>unique_id = f&quot;{user_id}{timestamp}&quot;<\/p>\n<p>print(unique_id)  # \u8f93\u51fa\uff1a123456789<\/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\u751f\u6210\u62a5\u8868\u6216\u65e5\u5fd7\u65f6\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u591a\u4e2a\u6570\u5b57\u8fde\u63a5\u5728\u4e00\u8d77\u4ee5\u5b9e\u73b0\u7279\u5b9a\u7684\u683c\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">hour = 9<\/p>\n<p>minute = 5<\/p>\n<p>second = 30<\/p>\n<p>time_str = f&quot;{hour:02}:{minute:02}:{second:02}&quot;<\/p>\n<p>print(time_str)  # \u8f93\u51fa\uff1a09:05:30<\/p>\n<p><\/code><\/pre>\n<\/p>\n<ol start=\"3\">\n<li><strong>\u6570\u636e\u5408\u5e76<\/strong><\/li>\n<\/ol>\n<p><p>\u5728\u6570\u636e\u5904\u7406\u548c\u5206\u6790\u4e2d\uff0c\u53ef\u80fd\u9700\u8981\u5c06\u591a\u4e2a\u6570\u636e\u5b57\u6bb5\u5408\u5e76\u4e3a\u4e00\u4e2a\u5b57\u6bb5\u3002\u4f8b\u5982\uff0c\u5728\u6570\u636e\u5408\u5e76\u65f6\uff0c\u53ef\u4ee5\u5c06\u591a\u4e2aID\u5b57\u6bb5\u5408\u5e76\u4e3a\u4e00\u4e2a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\">id_part1 = 101<\/p>\n<p>id_part2 = 202<\/p>\n<p>full_id = f&quot;{id_part1}{id_part2}&quot;<\/p>\n<p>print(full_id)  # \u8f93\u51fa\uff1a101202<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u4ee5\u4e0a\u4ecb\u7ecd\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230Python\u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u5b9e\u73b0\u6570\u5b57\u8fde\u63a5\u3002\u6839\u636e\u5177\u4f53\u7684\u5e94\u7528\u573a\u666f\uff0c\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u6027\u80fd\u3002\u65e0\u8bba\u662f\u7b80\u5355\u7684\u5b57\u7b26\u4e32\u8f6c\u6362\uff0c\u8fd8\u662f\u590d\u6742\u7684\u6570\u5b66\u8fd0\u7b97\uff0cPython\u90fd\u80fd\u4e3a\u6211\u4eec\u63d0\u4f9b\u7075\u6d3b\u7684\u89e3\u51b3\u65b9\u6848\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u5e76\u8fde\u63a5\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str()<\/code>\u51fd\u6570\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\u3002\u4f8b\u5982\uff0c\u5982\u679c\u6709\u4e24\u4e2a\u6570\u5b57<code>num1 = 5<\/code>\u548c<code>num2 = 10<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7<code>str(num1) + str(num2)<\/code>\u5c06\u5b83\u4eec\u8fde\u63a5\u4e3a\u5b57\u7b26\u4e32<code>&quot;510&quot;<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u9002\u7528\u4e8e\u4efb\u4f55\u7c7b\u578b\u7684\u6570\u5b57\uff0c\u5305\u62ec\u6574\u6570\u548c\u6d6e\u70b9\u6570\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u53ef\u4ee5\u4f7f\u7528\u54ea\u4e9b\u65b9\u6cd5\u8fde\u63a5\u591a\u4e2a\u6570\u5b57\uff1f<\/strong><br \/>\u9664\u4e86\u4f7f\u7528<code>+<\/code>\u8fd0\u7b97\u7b26\u5916\uff0cPython\u8fd8\u63d0\u4f9b\u4e86<code>join()<\/code>\u65b9\u6cd5\u6765\u8fde\u63a5\u591a\u4e2a\u5b57\u7b26\u4e32\u3002\u5982\u679c\u4f60\u6709\u591a\u4e2a\u6570\u5b57\uff0c\u53ef\u4ee5\u5148\u5c06\u5b83\u4eec\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528<code>join()<\/code>\u3002\u4f8b\u5982\uff0c<code>numbers = [1, 2, 3]<\/code>\u53ef\u4ee5\u901a\u8fc7<code>&#39;&#39;.join(map(str, numbers))<\/code>\u8fde\u63a5\u6210<code>&quot;123&quot;<\/code>\u3002\u8fd9\u79cd\u65b9\u5f0f\u5728\u5904\u7406\u8f83\u591a\u6570\u5b57\u65f6\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u683c\u5f0f\u5316\u8fde\u63a5\u7684\u6570\u5b57\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\uff08f-string\uff09\u6216<code>format()<\/code>\u65b9\u6cd5\u6765\u8fde\u63a5\u6570\u5b57\u5e76\u6dfb\u52a0\u81ea\u5b9a\u4e49\u683c\u5f0f\u3002\u4f8b\u5982\uff0c\u4f7f\u7528f-string\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>formatted_string = f&quot;{num1}-{num2}&quot;<\/code>\uff0c\u8fd9\u6837\u53ef\u4ee5\u5c06\u4e24\u4e2a\u6570\u5b57\u8fde\u63a5\u4e3a<code>&quot;5-10&quot;<\/code>\u3002\u8fd9\u79cd\u65b9\u6cd5\u975e\u5e38\u9002\u5408\u9700\u8981\u7279\u5b9a\u683c\u5f0f\u7684\u6570\u5b57\u8fde\u63a5\u573a\u666f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\uff0c\u6570\u5b57\u8fde\u63a5\u53ef\u4ee5\u901a\u8fc7\u5b57\u7b26\u4e32\u8f6c\u6362\u3001\u6570\u5b66\u8fd0\u7b97\u548c\u4f7f\u7528\u683c\u5f0f\u5316\u65b9\u6cd5\u7b49\u65b9\u5f0f\u5b9e\u73b0\u3002\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u5c06\u6570\u5b57\u8f6c [&hellip;]","protected":false},"author":3,"featured_media":1010393,"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\/1010387"}],"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=1010387"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1010387\/revisions"}],"predecessor-version":[{"id":1010394,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1010387\/revisions\/1010394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1010393"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1010387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1010387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1010387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}