{"id":1111579,"date":"2025-01-08T17:30:36","date_gmt":"2025-01-08T09:30:36","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1111579.html"},"modified":"2025-01-08T17:30:38","modified_gmt":"2025-01-08T09:30:38","slug":"python%e4%b8%ad%e5%a6%82%e4%bd%95%e6%8a%8a%e6%95%b0%e5%8f%98%e6%88%90%e5%8d%81%e8%bf%9b%e5%88%b6","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1111579.html","title":{"rendered":"Python\u4e2d\u5982\u4f55\u628a\u6570\u53d8\u6210\u5341\u8fdb\u5236"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25074002\/a1d82ca5-3e13-41d1-9683-69ea25d6ba95.webp\" alt=\"Python\u4e2d\u5982\u4f55\u628a\u6570\u53d8\u6210\u5341\u8fdb\u5236\" \/><\/p>\n<p><p> <strong>\u5728Python\u4e2d\u5c06\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u53ef\u4ee5\u901a\u8fc7\u5185\u7f6e\u51fd\u6570\u548c\u65b9\u6cd5\u6765\u5b9e\u73b0\uff0c\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u5904\u7406\u4e0d\u540c\u8fdb\u5236\u6570\u7684\u5b57\u7b26\u4e32\u8868\u793a\u7b49\u3002<\/strong>\u5176\u4e2d\uff0c\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\uff0c\u5c06\u5176\u4ed6\u8fdb\u5236\u7684\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u3002\u4e0b\u9762\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4ecb\u7ecd\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u5e76\u7ed9\u51fa\u5177\u4f53\u7684\u4ee3\u7801\u793a\u4f8b\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e00\u3001\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u8fdb\u884c\u8fdb\u5236\u8f6c\u6362<\/strong><\/p>\n<\/p>\n<p><p>Python\u4e2d\u7684<code>int()<\/code>\u51fd\u6570\u4e0d\u4ec5\u53ef\u4ee5\u7528\u4e8e\u5c06\u5b57\u7b26\u4e32\u8f6c\u6362\u4e3a\u6574\u6570\uff0c\u8fd8\u53ef\u4ee5\u6307\u5b9a\u5b57\u7b26\u4e32\u6240\u8868\u793a\u7684\u6570\u5b57\u7684\u8fdb\u5236\uff0c\u4ece\u800c\u5b9e\u73b0\u4e0d\u540c\u8fdb\u5236\u6570\u5230\u5341\u8fdb\u5236\u6570\u7684\u8f6c\u6362\u3002<\/p>\n<\/p>\n<p><pre><code># \u4e8c\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236<\/p>\n<p>binary_str = &quot;1101&quot;<\/p>\n<p>decimal_num = int(binary_str, 2)<\/p>\n<p>print(decimal_num)  # \u8f93\u51fa\uff1a13<\/p>\n<h2><strong>\u516b\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236<\/strong><\/h2>\n<p>octal_str = &quot;15&quot;<\/p>\n<p>decimal_num = int(octal_str, 8)<\/p>\n<p>print(decimal_num)  # \u8f93\u51fa\uff1a13<\/p>\n<h2><strong>\u5341\u516d\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236<\/strong><\/h2>\n<p>hex_str = &quot;D&quot;<\/p>\n<p>decimal_num = int(hex_str, 16)<\/p>\n<p>print(decimal_num)  # \u8f93\u51fa\uff1a13<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4e8c\u3001\u5904\u7406\u4e0d\u540c\u8fdb\u5236\u6570\u7684\u5b57\u7b26\u4e32\u8868\u793a<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u8fdb\u5236\u6570\u901a\u5e38\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8868\u793a\uff0c\u901a\u8fc7\u6307\u5b9a\u4e0d\u540c\u7684\u8fdb\u5236\uff0c\u53ef\u4ee5\u5c06\u8fd9\u4e9b\u5b57\u7b26\u4e32\u8868\u793a\u7684\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u6570\u3002\u4e0a\u9762\u7684\u793a\u4f8b\u5df2\u7ecf\u5c55\u793a\u4e86\u5982\u4f55\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u5b9e\u73b0\u8fd9\u4e00\u70b9\u3002<\/p>\n<\/p>\n<p><p><strong>\u4e09\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/strong><\/p>\n<\/p>\n<p><p>Python\u63d0\u4f9b\u4e86\u591a\u79cd\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u65b9\u6cd5\uff0c\u5176\u4e2d\u5305\u62ec\u5904\u7406\u4e0d\u540c\u8fdb\u5236\u6570\u5e76\u5c06\u5176\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u6570\u7684\u529f\u80fd\u3002\u4f8b\u5982\uff0c\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u548cf-string\u53ef\u4ee5\u5c06\u6574\u6570\u8f6c\u6362\u4e3a\u4e0d\u540c\u8fdb\u5236\u7684\u5b57\u7b26\u4e32\u8868\u793a\u3002<\/p>\n<\/p>\n<p><pre><code># \u5c06\u5341\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u3001\u516b\u8fdb\u5236\u548c\u5341\u516d\u8fdb\u5236\u5b57\u7b26\u4e32<\/p>\n<p>num = 13<\/p>\n<p>binary_str = format(num, &#39;b&#39;)<\/p>\n<p>octal_str = format(num, &#39;o&#39;)<\/p>\n<p>hex_str = format(num, &#39;x&#39;)<\/p>\n<p>print(binary_str)  # \u8f93\u51fa\uff1a1101<\/p>\n<p>print(octal_str)   # \u8f93\u51fa\uff1a15<\/p>\n<p>print(hex_str)     # \u8f93\u51fa\uff1ad<\/p>\n<h2><strong>\u4f7f\u7528f-string\u8fdb\u884c\u683c\u5f0f\u5316<\/strong><\/h2>\n<p>binary_str = f&quot;{num:b}&quot;<\/p>\n<p>octal_str = f&quot;{num:o}&quot;<\/p>\n<p>hex_str = f&quot;{num:x}&quot;<\/p>\n<p>print(binary_str)  # \u8f93\u51fa\uff1a1101<\/p>\n<p>print(octal_str)   # \u8f93\u51fa\uff1a15<\/p>\n<p>print(hex_str)     # \u8f93\u51fa\uff1ad<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u8fc7\u8fd9\u79cd\u65b9\u5f0f\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5c06\u5341\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5176\u4ed6\u8fdb\u5236\u7684\u5b57\u7b26\u4e32\u8868\u793a\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002<\/p>\n<\/p>\n<p><p><strong>\u56db\u3001\u5904\u7406\u4e0d\u540c\u8fdb\u5236\u7684\u6570<\/strong><\/p>\n<\/p>\n<p><p>\u5f53\u5904\u7406\u4e0d\u540c\u8fdb\u5236\u7684\u6570\u65f6\uff0c\u9700\u8981\u6ce8\u610f\u8fdb\u5236\u7684\u8868\u793a\u65b9\u6cd5\u3002\u4f8b\u5982\uff0c\u4e8c\u8fdb\u5236\u6570\u901a\u5e38\u4ee5<code>0b<\/code>\u5f00\u5934\uff0c\u516b\u8fdb\u5236\u6570\u4ee5<code>0o<\/code>\u5f00\u5934\uff0c\u5341\u516d\u8fdb\u5236\u6570\u4ee5<code>0x<\/code>\u5f00\u5934\u3002\u5728\u7f16\u5199\u7a0b\u5e8f\u65f6\uff0c\u9700\u8981\u8003\u8651\u8fd9\u4e9b\u524d\u7f00\uff0c\u4ee5\u6b63\u786e\u5730\u89e3\u6790\u548c\u8f6c\u6362\u8fdb\u5236\u6570\u3002<\/p>\n<\/p>\n<p><pre><code># \u5e26\u6709\u524d\u7f00\u7684\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236<\/p>\n<p>binary_str = &quot;0b1101&quot;<\/p>\n<p>octal_str = &quot;0o15&quot;<\/p>\n<p>hex_str = &quot;0xD&quot;<\/p>\n<h2><strong>\u53bb\u6389\u524d\u7f00\u540e\u8fdb\u884c\u8f6c\u6362<\/strong><\/h2>\n<p>decimal_num_binary = int(binary_str, 2)<\/p>\n<p>decimal_num_octal = int(octal_str, 8)<\/p>\n<p>decimal_num_hex = int(hex_str, 16)<\/p>\n<p>print(decimal_num_binary)  # \u8f93\u51fa\uff1a13<\/p>\n<p>print(decimal_num_octal)   # \u8f93\u51fa\uff1a13<\/p>\n<p>print(decimal_num_hex)     # \u8f93\u51fa\uff1a13<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4e94\u3001\u8fdb\u5236\u8f6c\u6362\u7684\u5b9e\u7528\u6848\u4f8b<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u5b9e\u9645\u5e94\u7528\u4e2d\uff0c\u8fdb\u5236\u8f6c\u6362\u5e38\u5e38\u7528\u4e8e\u5904\u7406\u7f51\u7edc\u7f16\u7a0b\u3001\u6570\u636e\u52a0\u5bc6\u3001\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u7b49\u9886\u57df\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5b9e\u9645\u6848\u4f8b\uff0c\u5c55\u793a\u4e86\u8fdb\u5236\u8f6c\u6362\u7684\u5e94\u7528\u3002<\/p>\n<\/p>\n<p><p><strong>1. \u7f51\u7edc\u7f16\u7a0b<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u7f51\u7edc\u7f16\u7a0b\u4e2d\uff0cIP\u5730\u5740\u901a\u5e38\u8868\u793a\u4e3a\u70b9\u5206\u5341\u8fdb\u5236\u683c\u5f0f\uff0c\u4f46\u5728\u8ba1\u7b97\u673a\u5185\u90e8\uff0cIP\u5730\u5740\u662f\u4ee5\u4e8c\u8fdb\u5236\u5f62\u5f0f\u5b58\u50a8\u7684\u3002\u56e0\u6b64\uff0c\u9700\u8981\u8fdb\u884c\u8fdb\u5236\u8f6c\u6362\u4ee5\u4fbf\u4e8e\u5904\u7406\u548c\u4f20\u8f93\u3002<\/p>\n<\/p>\n<p><pre><code>import socket<\/p>\n<p>import struct<\/p>\n<h2><strong>\u5c06IP\u5730\u5740\u8f6c\u6362\u4e3a\u4e8c\u8fdb\u5236\u683c\u5f0f<\/strong><\/h2>\n<p>ip_address = &quot;192.168.1.1&quot;<\/p>\n<p>packed_ip = socket.inet_aton(ip_address)<\/p>\n<p>binary_ip = struct.unpack(&quot;!I&quot;, packed_ip)[0]<\/p>\n<p>print(f&quot;IP\u5730\u5740 {ip_address} \u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u4e3a: {binary_ip:b}&quot;)<\/p>\n<h2><strong>\u5c06\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684IP\u5730\u5740\u8f6c\u6362\u56de\u70b9\u5206\u5341\u8fdb\u5236\u683c\u5f0f<\/strong><\/h2>\n<p>unpacked_ip = socket.inet_ntoa(struct.pack(&quot;!I&quot;, binary_ip))<\/p>\n<p>print(f&quot;\u4e8c\u8fdb\u5236\u683c\u5f0f\u7684IP\u5730\u5740 {binary_ip:b} \u8f6c\u6362\u56de\u70b9\u5206\u5341\u8fdb\u5236\u683c\u5f0f\u4e3a: {unpacked_ip}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>2. \u6570\u636e\u52a0\u5bc6<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u6570\u636e\u52a0\u5bc6\u4e2d\uff0c\u5bc6\u94a5\u548c\u52a0\u5bc6\u6570\u636e\u901a\u5e38\u4ee5\u5341\u516d\u8fdb\u5236\u8868\u793a\u3002\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5c06\u5341\u516d\u8fdb\u5236\u5bc6\u94a5\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff0c\u4ee5\u4fbf\u4e8e\u8fdb\u4e00\u6b65\u7684\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code>hex_key = &quot;1a2b3c4d5e6f&quot;<\/p>\n<p>decimal_key = int(hex_key, 16)<\/p>\n<p>print(f&quot;\u5341\u516d\u8fdb\u5236\u5bc6\u94a5 {hex_key} \u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u4e3a: {decimal_key}&quot;)<\/p>\n<h2><strong>\u52a0\u5bc6\u6570\u636e\u5904\u7406\u793a\u4f8b<\/strong><\/h2>\n<p>data = &quot;Hello, World!&quot;<\/p>\n<p>encrypted_data = &#39;&#39;.join([format(ord(char) ^ decimal_key, &#39;x&#39;) for char in data])<\/p>\n<p>print(f&quot;\u52a0\u5bc6\u6570\u636e\u4e3a: {encrypted_data}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>3. \u8ba1\u7b97\u673a\u56fe\u5f62\u5b66<\/strong><\/p>\n<\/p>\n<p><p>\u5728\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u4e2d\uff0c\u989c\u8272\u901a\u5e38\u8868\u793a\u4e3a\u5341\u516d\u8fdb\u5236\u683c\u5f0f\u3002\u4ee5\u4e0b\u793a\u4f8b\u5c55\u793a\u4e86\u5982\u4f55\u5c06\u5341\u516d\u8fdb\u5236\u989c\u8272\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff0c\u4ee5\u4fbf\u4e8e\u56fe\u5f62\u5904\u7406\u3002<\/p>\n<\/p>\n<p><pre><code>hex_color = &quot;#FF5733&quot;<\/p>\n<p>r = int(hex_color[1:3], 16)<\/p>\n<p>g = int(hex_color[3:5], 16)<\/p>\n<p>b = int(hex_color[5:7], 16)<\/p>\n<p>print(f&quot;\u5341\u516d\u8fdb\u5236\u989c\u8272 {hex_color} \u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u4e3a: R={r}, G={g}, B={b}&quot;)<\/p>\n<h2><strong>\u8fdb\u4e00\u6b65\u5904\u7406\u989c\u8272\uff0c\u4f8b\u5982\u8c03\u6574\u4eae\u5ea6<\/strong><\/h2>\n<p>def adjust_brightness(r, g, b, factor):<\/p>\n<p>    r = min(255, int(r * factor))<\/p>\n<p>    g = min(255, int(g * factor))<\/p>\n<p>    b = min(255, int(b * factor))<\/p>\n<p>    return r, g, b<\/p>\n<p>brighter_r, brighter_g, brighter_b = adjust_brightness(r, g, b, 1.2)<\/p>\n<p>print(f&quot;\u8c03\u6574\u4eae\u5ea6\u540e\u7684\u989c\u8272\u4e3a: R={brighter_r}, G={brighter_g}, B={brighter_b}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u516d\u3001\u603b\u7ed3<\/strong><\/p>\n<\/p>\n<p><p>\u5728Python\u4e2d\uff0c\u5c06\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u4e3b\u8981\u901a\u8fc7\u4f7f\u7528<code>int()<\/code>\u51fd\u6570\u3001\u5904\u7406\u4e0d\u540c\u8fdb\u5236\u6570\u7684\u5b57\u7b26\u4e32\u8868\u793a\u4ee5\u53ca\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u7b49\u65b9\u6cd5\u6765\u5b9e\u73b0\u3002\u901a\u8fc7\u719f\u7ec3\u638c\u63e1\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u8fdb\u884c\u8fdb\u5236\u8f6c\u6362\uff0c\u5e76\u5e94\u7528\u4e8e\u7f51\u7edc\u7f16\u7a0b\u3001\u6570\u636e\u52a0\u5bc6\u3001\u8ba1\u7b97\u673a\u56fe\u5f62\u5b66\u7b49\u5b9e\u9645\u573a\u666f\u4e2d\u3002\u5e0c\u671b\u672c\u6587\u5bf9\u4f60\u7406\u89e3\u548c\u638c\u63e1Python\u4e2d\u7684\u8fdb\u5236\u8f6c\u6362\u6709\u6240\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u4e8c\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528\u5185\u7f6e\u7684<code>int()<\/code>\u51fd\u6570\u5c06\u4e8c\u8fdb\u5236\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u3002\u53ea\u9700\u5c06\u4e8c\u8fdb\u5236\u6570\u4f5c\u4e3a\u5b57\u7b26\u4e32\u4f20\u9012\uff0c\u5e76\u6307\u5b9a\u57fa\u6570\u4e3a2\u3002\u4f8b\u5982\uff0c<code>int(&#39;1010&#39;, 2)<\/code>\u5c06\u8fd4\u56de10\uff0c\u8fd9\u662f\u4e8c\u8fdb\u52361010\u7684\u5341\u8fdb\u5236\u8868\u793a\u3002<\/p>\n<p><strong>Python\u80fd\u5904\u7406\u54ea\u4e9b\u8fdb\u5236\u7684\u6570\u503c\u8f6c\u6362\uff1f<\/strong><br \/>Python\u652f\u6301\u591a\u79cd\u8fdb\u5236\u7684\u6570\u503c\u8f6c\u6362\uff0c\u5305\u62ec\u4e8c\u8fdb\u5236\u3001\u516b\u8fdb\u5236\u3001\u5341\u8fdb\u5236\u548c\u5341\u516d\u8fdb\u5236\u3002\u7528\u6237\u53ef\u4ee5\u901a\u8fc7<code>int()<\/code>\u51fd\u6570\u8fdb\u884c\u8f6c\u6362\uff0c\u53ea\u9700\u6307\u5b9a\u76f8\u5e94\u7684\u57fa\u6570\u3002\u4f8b\u5982\uff0c<code>int(&#39;1A&#39;, 16)<\/code>\u53ef\u4ee5\u5c06\u5341\u516d\u8fdb\u5236\u65701A\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u503c26\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\u5982\u4f55\u5c06\u6d6e\u70b9\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff1f<\/strong><br \/>\u5982\u679c\u4f60\u60f3\u5c06\u6d6e\u70b9\u6570\u4ee5\u5b57\u7b26\u4e32\u5f62\u5f0f\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\uff0c\u53ef\u4ee5\u76f4\u63a5\u4f7f\u7528<code>float()<\/code>\u51fd\u6570\u3002\u4f8b\u5982\uff0c<code>float(&#39;3.14&#39;)<\/code>\u5c06\u8fd4\u56de3.14\u7684\u5341\u8fdb\u5236\u503c\u3002\u5728Python\u4e2d\uff0c\u6d6e\u70b9\u6570\u672c\u8eab\u5c31\u662f\u5341\u8fdb\u5236\u7684\u8868\u793a\u65b9\u5f0f\uff0c\u56e0\u6b64\u6ca1\u6709\u7279\u522b\u7684\u8f6c\u6362\u6b65\u9aa4\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728Python\u4e2d\u5c06\u6570\u8f6c\u6362\u4e3a\u5341\u8fdb\u5236\u53ef\u4ee5\u901a\u8fc7\u5185\u7f6e\u51fd\u6570\u548c\u65b9\u6cd5\u6765\u5b9e\u73b0\uff0c\u6838\u5fc3\u65b9\u6cd5\u5305\u62ec\u4f7f\u7528int()\u51fd\u6570\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u5904 [&hellip;]","protected":false},"author":3,"featured_media":1111587,"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\/1111579"}],"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=1111579"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1111579\/revisions"}],"predecessor-version":[{"id":1111589,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1111579\/revisions\/1111589"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1111587"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1111579"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1111579"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1111579"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}