{"id":1120125,"date":"2025-01-08T18:53:00","date_gmt":"2025-01-08T10:53:00","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1120125.html"},"modified":"2025-01-08T18:53:02","modified_gmt":"2025-01-08T10:53:02","slug":"python%e5%a6%82%e4%bd%95%e8%ae%a9%e6%95%b4%e4%b8%aa%e6%95%b0%e7%bb%84%e9%83%bd%e5%8f%98%e6%88%90%e6%95%b4%e6%95%b0","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1120125.html","title":{"rendered":"python\u5982\u4f55\u8ba9\u6574\u4e2a\u6570\u7ec4\u90fd\u53d8\u6210\u6574\u6570"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25082926\/f7016d9d-64f8-4a76-84b1-99f2631fea39.webp\" alt=\"python\u5982\u4f55\u8ba9\u6574\u4e2a\u6570\u7ec4\u90fd\u53d8\u6210\u6574\u6570\" \/><\/p>\n<p><p> <strong>\u5c06\u6574\u4e2a\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u7684\u6b65\u9aa4\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5e38\u89c1\u7684\u6709\uff1a\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u3001\u4f7f\u7528map\u51fd\u6570\u3001\u4f7f\u7528NumPy\u5e93\u3002<\/strong> \u9996\u5148\uff0c\u6700\u5feb\u6377\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5728Python\u4e2d\u975e\u5e38\u5e38\u89c1\u5e76\u4e14\u6613\u4e8e\u7406\u89e3\u3002\u5176\u6b21\uff0c\u53ef\u4ee5\u901a\u8fc7map\u51fd\u6570\u6765\u5b9e\u73b0\u540c\u6837\u7684\u6548\u679c\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5728\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u65f6\u6548\u7387\u8f83\u9ad8\u3002\u6700\u540e\uff0c\u4f7f\u7528NumPy\u5e93\u53ef\u4ee5\u5728\u5904\u7406\u6570\u503c\u578b\u6570\u7ec4\u65f6\u63d0\u4f9b\u66f4\u591a\u7684\u529f\u80fd\u548c\u66f4\u9ad8\u7684\u6548\u7387\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e09\u79cd\u65b9\u6cd5\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u4f7f\u7528\u5217\u8868\u63a8\u5bfc<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u662f\u4e00\u79cd\u7b80\u6d01\u4e14\u9ad8\u6548\u7684\u65b9\u6cd5\u6765\u751f\u6210\u65b0\u7684\u5217\u8868\u3002\u5b83\u7684\u8bed\u6cd5\u7b80\u6d01\u660e\u4e86\uff0c\u975e\u5e38\u9002\u5408\u4e8e\u5c06\u4e00\u4e2a\u5305\u542b\u6d6e\u70b9\u6570\u6216\u5b57\u7b26\u4e32\u7684\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>float_array = [1.2, 2.5, 3.7, 4.6]<\/p>\n<p>int_array = [int(x) for x in float_array]<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u6765\u904d\u5386<code>float_array<\/code>\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u7136\u540e\u751f\u6210\u4e00\u4e2a\u65b0\u7684\u6574\u6570\u6570\u7ec4<code>int_array<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u4f7f\u7528map\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>map<\/code>\u51fd\u6570\u662fPython\u5185\u7f6e\u7684\u9ad8\u9636\u51fd\u6570\uff0c\u7528\u4e8e\u5c06\u4e00\u4e2a\u51fd\u6570\u5e94\u7528\u5230\u5e8f\u5217\u4e2d\u7684\u6bcf\u4e00\u4e2a\u5143\u7d20\u3002\u5b83\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>float_array = [1.2, 2.5, 3.7, 4.6]<\/p>\n<p>int_array = list(map(int, float_array))<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c<code>map<\/code>\u51fd\u6570\u5c06<code>int<\/code>\u51fd\u6570\u5e94\u7528\u5230<code>float_array<\/code>\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\uff0c\u5e76\u8fd4\u56de\u4e00\u4e2amap\u5bf9\u8c61\u3002\u6211\u4eec\u4f7f\u7528<code>list<\/code>\u51fd\u6570\u5c06\u5176\u8f6c\u6362\u4e3a\u5217\u8868\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u4f7f\u7528NumPy\u5e93<\/h3>\n<\/p>\n<p><p>NumPy\u662f\u4e00\u4e2a\u5f3a\u5927\u7684\u79d1\u5b66\u8ba1\u7b97\u5e93\uff0c\u9002\u7528\u4e8e\u5904\u7406\u5927\u89c4\u6a21\u7684\u6570\u503c\u578b\u6570\u7ec4\u3002\u5b83\u63d0\u4f9b\u4e86\u9ad8\u6548\u7684\u6570\u7ec4\u64cd\u4f5c\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import numpy as np<\/p>\n<p>float_array = np.array([1.2, 2.5, 3.7, 4.6])<\/p>\n<p>int_array = float_array.astype(int)<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[1 2 3 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u4f7f\u7528NumPy\u521b\u5efa\u4e00\u4e2a\u6d6e\u70b9\u6570\u6570\u7ec4<code>float_array<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>astype<\/code>\u65b9\u6cd5\u5c06\u5176\u8f6c\u6362\u4e3a\u6574\u6570\u6570\u7ec4<code>int_array<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u8be6\u7ec6\u89e3\u6790\u5217\u8868\u63a8\u5bfc<\/h3>\n<\/p>\n<p><p>\u5217\u8868\u63a8\u5bfc\u7684\u6838\u5fc3\u5728\u4e8e\u5176\u7b80\u6d01\u548c\u9ad8\u6548\u3002\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\uff0c\u6211\u4eec\u53ef\u4ee5\u5728\u4e00\u884c\u4ee3\u7801\u4e2d\u5b8c\u6210\u6570\u7ec4\u5143\u7d20\u7684\u8f6c\u6362\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u66f4\u590d\u6742\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86\u5217\u8868\u63a8\u5bfc\u7684\u5f3a\u5927\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1. \u8f6c\u6362\u5b57\u7b26\u4e32\u6570\u7ec4<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>str_array = [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;]<\/p>\n<p>int_array = [int(x) for x in str_array]<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><h4>2. \u5904\u7406\u5e26\u6709\u6761\u4ef6\u7684\u8f6c\u6362<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>float_array = [1.2, 2.5, 3.7, 4.6]<\/p>\n<p>int_array = [int(x) for x in float_array if x &gt; 2]<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u53ea\u8f6c\u6362\u5927\u4e8e2\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u8be6\u7ec6\u89e3\u6790map\u51fd\u6570<\/h3>\n<\/p>\n<p><p><code>map<\/code>\u51fd\u6570\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u9ad8\u6548\u548c\u7b80\u6d01\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u636e\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u66f4\u590d\u6742\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86<code>map<\/code>\u51fd\u6570\u7684\u5f3a\u5927\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1. \u8f6c\u6362\u5b57\u7b26\u4e32\u6570\u7ec4<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>str_array = [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;]<\/p>\n<p>int_array = list(map(int, str_array))<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[1, 2, 3, 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><h4>2. \u5904\u7406\u5e26\u6709\u81ea\u5b9a\u4e49\u51fd\u6570\u7684\u8f6c\u6362<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>def custom_conversion(x):<\/p>\n<p>    return int(x) * 2<\/p>\n<p>float_array = [1.2, 2.5, 3.7, 4.6]<\/p>\n<p>int_array = list(map(custom_conversion, float_array))<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[2, 4, 6, 8]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u4f7f\u7528\u81ea\u5b9a\u4e49\u51fd\u6570\u6765\u8f6c\u6362\u6570\u7ec4\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u8be6\u7ec6\u89e3\u6790NumPy\u5e93<\/h3>\n<\/p>\n<p><p>NumPy\u5e93\u7684\u4f18\u52bf\u5728\u4e8e\u5176\u9ad8\u6548\u548c\u529f\u80fd\u5f3a\u5927\uff0c\u7279\u522b\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u503c\u578b\u6570\u7ec4\u3002\u4e0b\u9762\u662f\u4e00\u4e9b\u66f4\u590d\u6742\u7684\u793a\u4f8b\uff0c\u5c55\u793a\u4e86NumPy\u7684\u5f3a\u5927\u529f\u80fd\u3002<\/p>\n<\/p>\n<p><h4>1. \u8f6c\u6362\u5b57\u7b26\u4e32\u6570\u7ec4<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import numpy as np<\/p>\n<p>str_array = np.array([&quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;])<\/p>\n<p>int_array = str_array.astype(int)<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[1 2 3 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u6570\u7ec4\u3002<\/p>\n<\/p>\n<p><h4>2. \u5904\u7406\u5e26\u6709\u6761\u4ef6\u7684\u8f6c\u6362<\/h4>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801<\/p>\n<p>import numpy as np<\/p>\n<p>float_array = np.array([1.2, 2.5, 3.7, 4.6])<\/p>\n<p>int_array = float_array[float_array &gt; 2].astype(int)<\/p>\n<p>print(int_array)  # \u8f93\u51fa\uff1a[2 3 4]<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u4e2a\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u53ea\u8f6c\u6362\u5927\u4e8e2\u7684\u5143\u7d20\u3002<\/p>\n<\/p>\n<p><h3>\u4e03\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p>\u5c06\u6574\u4e2a\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u7684\u65b9\u6cd5\u6709\u591a\u79cd\uff0c\u6bcf\u79cd\u65b9\u6cd5\u90fd\u6709\u5176\u72ec\u7279\u7684\u4f18\u52bf\u3002<strong>\u5217\u8868\u63a8\u5bfc\u7b80\u6d01\u4e14\u6613\u4e8e\u7406\u89e3\uff0c\u9002\u5408\u5904\u7406\u5c0f\u89c4\u6a21\u6570\u636e\uff1bmap\u51fd\u6570\u9ad8\u6548\u4e14\u9002\u7528\u4e8e\u5927\u89c4\u6a21\u6570\u636e\u5904\u7406\uff1bNumPy\u5e93\u529f\u80fd\u5f3a\u5927\u4e14\u9002\u5408\u5904\u7406\u5927\u89c4\u6a21\u6570\u503c\u578b\u6570\u7ec4\u3002<\/strong> \u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\u53ef\u4ee5\u63d0\u9ad8\u4ee3\u7801\u7684\u53ef\u8bfb\u6027\u548c\u8fd0\u884c\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5c06Python\u4e2d\u7684\u6d6e\u70b9\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u6570\u7ec4\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u4f7f\u7528NumPy\u5e93\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u6d6e\u70b9\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u6570\u7ec4\u3002\u53ef\u4ee5\u4f7f\u7528<code>numpy.astype(int)<\/code>\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u9996\u5148\u5bfc\u5165NumPy\u5e93\uff0c\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u6d6e\u70b9\u6570\u7ec4\uff0c\u6700\u540e\u8c03\u7528<code>astype<\/code>\u65b9\u6cd5\u8fdb\u884c\u8f6c\u6362\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\n\nfloat_array = np.array([1.5, 2.3, 3.7])\nint_array = float_array.astype(int)\nprint(int_array)  # \u8f93\u51fa: [1 2 3]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u4f1a\u76f4\u63a5\u622a\u65ad\u5c0f\u6570\u90e8\u5206\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5904\u7406\u6570\u7ec4\u4e2d\u7684\u975e\u6574\u6570\u5143\u7d20\uff1f<\/strong><br \/>\u5982\u679c\u6570\u7ec4\u4e2d\u5305\u542b\u975e\u6570\u5b57\u6216\u65e0\u6cd5\u8f6c\u6362\u4e3a\u6574\u6570\u7684\u5143\u7d20\uff0c\u53ef\u4ee5\u4f7f\u7528<code>try-except<\/code>\u7ed3\u6784\u6765\u6355\u6349\u8f6c\u6362\u65f6\u7684\u5f02\u5e38\u3002\u53ef\u4ee5\u901a\u8fc7\u5217\u8868\u63a8\u5bfc\u5f0f\u5bf9\u6bcf\u4e2a\u5143\u7d20\u8fdb\u884c\u5904\u7406\uff0c\u786e\u4fdd\u8f6c\u6362\u53ea\u5728\u6709\u6548\u5143\u7d20\u4e0a\u8fdb\u884c\u3002\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code class=\"language-python\">mixed_array = [1.5, &#39;a&#39;, 3.7, None]\nint_array = [int(x) for x in mixed_array if isinstance(x, (int, float))]  \nprint(int_array)  # \u8f93\u51fa: [1, 3]\n<\/code><\/pre>\n<p>\u8fd9\u79cd\u65b9\u6cd5\u6709\u52a9\u4e8e\u907f\u514d\u56e0\u65e0\u6548\u5143\u7d20\u5bfc\u81f4\u7684\u9519\u8bef\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u5982\u4f55\u5c06\u6570\u7ec4\u4e2d\u7684\u6240\u6709\u5143\u7d20\u90fd\u5f3a\u5236\u8f6c\u6362\u4e3a\u6574\u6570\uff1f<\/strong><br \/>\u4f7f\u7528NumPy\u5e93\u4e2d\u7684<code>numpy.floor()<\/code>\u6216<code>numpy.ceil()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u6570\u7ec4\u4e2d\u7684\u5143\u7d20\u5411\u4e0b\u6216\u5411\u4e0a\u53d6\u6574\u3002\u4e4b\u540e\u518d\u7528<code>astype(int)<\/code>\u65b9\u6cd5\u8f6c\u6362\u4e3a\u6574\u6570\u3002\u4f8b\u5982\uff1a<\/p>\n<pre><code class=\"language-python\">import numpy as np\n\nfloat_array = np.array([1.2, 2.5, 3.7])\nrounded_down = np.floor(float_array).astype(int)\nprint(rounded_down)  # \u8f93\u51fa: [1 2 3]\n\nrounded_up = np.ceil(float_array).astype(int)\nprint(rounded_up)  # \u8f93\u51fa: [2 3 4]\n<\/code><\/pre>\n<p>\u8fd9\u4e9b\u65b9\u6cd5\u63d0\u4f9b\u4e86\u66f4\u7075\u6d3b\u7684\u9009\u62e9\uff0c\u6ee1\u8db3\u4e0d\u540c\u7684\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5c06\u6574\u4e2a\u6570\u7ec4\u8f6c\u6362\u4e3a\u6574\u6570\u7684\u6b65\u9aa4\u6709\u591a\u79cd\u65b9\u6cd5\uff0c\u5e38\u89c1\u7684\u6709\uff1a\u4f7f\u7528\u5217\u8868\u63a8\u5bfc\u3001\u4f7f\u7528map\u51fd\u6570\u3001\u4f7f\u7528NumPy\u5e93\u3002 \u9996\u5148\uff0c\u6700\u5feb\u6377 [&hellip;]","protected":false},"author":3,"featured_media":1120134,"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\/1120125"}],"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=1120125"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1120125\/revisions"}],"predecessor-version":[{"id":1120136,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1120125\/revisions\/1120136"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1120134"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1120125"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1120125"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1120125"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}