{"id":1141921,"date":"2025-01-08T22:35:16","date_gmt":"2025-01-08T14:35:16","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/1141921.html"},"modified":"2025-01-08T22:35:18","modified_gmt":"2025-01-08T14:35:18","slug":"python%e5%a6%82%e4%bd%95%e5%b0%86%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%92%8c%e6%95%b0%e5%ad%97%e8%bf%9e%e8%b5%b7%e6%9d%a5","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/1141921.html","title":{"rendered":"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8fde\u8d77\u6765"},"content":{"rendered":"<p style=\"text-align:center;\" ><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/25104523\/660391d2-be6c-4e7f-8b16-b632a937460d.webp\" alt=\"python\u5982\u4f55\u5c06\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8fde\u8d77\u6765\" \/><\/p>\n<p><p> <strong>\u8981\u5c06\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8fde\u8d77\u6765\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e09\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u5b57\u7b26\u4e32\u63d2\u503c\u3001\u7c7b\u578b\u8f6c\u6362\u3002<\/strong> \u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548c\u5b57\u7b26\u4e32\u63d2\u503c\u662f\u73b0\u4ee3Python\u7f16\u7a0b\u4e2d\u6700\u63a8\u8350\u7684\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u4eec\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\u3002\u4ee5\u4e0b\u662f\u8be6\u7ec6\u63cf\u8ff0\uff1a<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u5b57\u7b26\u4e32\u683c\u5f0f\u5316<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u662f\u6700\u63a8\u8350\u7684\u65b9\u6cd5\u4e4b\u4e00\uff0c\u56e0\u4e3a\u5b83\u63d0\u4f9b\u4e86\u7075\u6d3b\u6027\u548c\u53ef\u8bfb\u6027\u3002Python\u63d0\u4f9b\u4e86\u51e0\u79cd\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u65b9\u5f0f\uff0c\u5176\u4e2d\u6700\u5e38\u7528\u7684\u6709<code>str.format()<\/code>\u65b9\u6cd5\u548cf-strings\uff08\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u5b57\u9762\u91cf\uff09\u3002<\/p>\n<\/p>\n<p><h4>1.1\u3001\u4f7f\u7528 <code>str.format()<\/code><\/h4>\n<\/p>\n<p><p><code>str.format()<\/code>\u65b9\u6cd5\u5141\u8bb8\u4f60\u5728\u5b57\u7b26\u4e32\u4e2d\u5d4c\u5165\u53d8\u91cf\uff0c\u4f7f\u7528\u5927\u62ec\u53f7 <code>{}<\/code>\u4f5c\u4e3a\u5360\u4f4d\u7b26\u3002\u8fd9\u4e2a\u65b9\u6cd5\u975e\u5e38\u7075\u6d3b\uff0c\u53ef\u4ee5\u5904\u7406\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>name = &quot;Alice&quot;<\/p>\n<p>age = 30<\/p>\n<p>result = &quot;My name is {} and I am {} years old.&quot;.format(name, age)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>My name is Alice and I am 30 years old.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u91cc\uff0c<code>{}<\/code>\u5360\u4f4d\u7b26\u5c06\u88ab<code>format()<\/code>\u65b9\u6cd5\u4e2d\u7684\u53c2\u6570\u66ff\u6362\u3002<\/p>\n<\/p>\n<p><h4>1.2\u3001\u4f7f\u7528 f-strings<\/h4>\n<\/p>\n<p><p>f-strings\u662f\u4e00\u79cd\u66f4\u7b80\u6d01\u548c\u9ad8\u6548\u7684\u683c\u5f0f\u5316\u65b9\u6cd5\u3002\u4f60\u53ea\u9700\u5728\u5b57\u7b26\u4e32\u524d\u52a0\u4e0a\u4e00\u4e2a<code>f<\/code>\uff0c\u7136\u540e\u5728\u5927\u62ec\u53f7 <code>{}<\/code> \u4e2d\u76f4\u63a5\u5d4c\u5165\u53d8\u91cf\u6216\u8868\u8fbe\u5f0f\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>name = &quot;Bob&quot;<\/p>\n<p>age = 25<\/p>\n<p>result = f&quot;My name is {name} and I am {age} years old.&quot;<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>My name is Bob and I am 25 years old.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>f-strings\u5728Python 3.6\u53ca\u4ee5\u4e0a\u7248\u672c\u4e2d\u53ef\u7528\uff0c\u5b83\u4eec\u4e0d\u4ec5\u7b80\u6d01\u800c\u4e14\u6027\u80fd\u4e5f\u66f4\u9ad8\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u5b57\u7b26\u4e32\u63d2\u503c<\/h3>\n<\/p>\n<p><p>\u5b57\u7b26\u4e32\u63d2\u503c\u662f\u901a\u8fc7\u5c06\u53d8\u91cf\u76f4\u63a5\u5d4c\u5165\u5b57\u7b26\u4e32\u4e2d\u7684\u65b9\u5f0f\u5b9e\u73b0\u7684\u3002\u5728Python\u4e2d\uff0c\u6700\u65e9\u7684\u5b57\u7b26\u4e32\u63d2\u503c\u65b9\u5f0f\u662f\u4f7f\u7528<code>%<\/code>\u64cd\u4f5c\u7b26\u3002<\/p>\n<\/p>\n<p><h4>2.1\u3001\u4f7f\u7528 <code>%<\/code> \u64cd\u4f5c\u7b26<\/h4>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u5728Python 2.x\u4e2d\u975e\u5e38\u6d41\u884c\uff0c\u4f46\u5728\u73b0\u4ee3Python\u7f16\u7a0b\u4e2d\u5df2\u88abf-strings\u548c<code>str.format()<\/code>\u65b9\u6cd5\u53d6\u4ee3\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>name = &quot;Charlie&quot;<\/p>\n<p>age = 28<\/p>\n<p>result = &quot;My name is %s and I am %d years old.&quot; % (name, age)<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>My name is Charlie and I am 28 years old.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u867d\u7136\u8fd9\u79cd\u65b9\u6cd5\u4f9d\u7136\u6709\u6548\uff0c\u4f46\u4e0d\u63a8\u8350\u5728\u65b0\u7684\u4ee3\u7801\u4e2d\u4f7f\u7528\uff0c\u56e0\u4e3a\u5b83\u7684\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\u4e0d\u5982f-strings\u548c<code>str.format()<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u7c7b\u578b\u8f6c\u6362<\/h3>\n<\/p>\n<p><p>\u7c7b\u578b\u8f6c\u6362\u662f\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528\u5b57\u7b26\u4e32\u7684\u8fde\u63a5\u64cd\u4f5c\u7b26<code>+<\/code>\u5c06\u5b83\u4eec\u8fde\u5728\u4e00\u8d77\u3002\u8fd9\u79cd\u65b9\u6cd5\u7b80\u5355\u76f4\u63a5\uff0c\u4f46\u5728\u5904\u7406\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\u65f6\u663e\u5f97\u7b28\u62d9\u3002<\/p>\n<\/p>\n<p><h4>3.1\u3001\u4f7f\u7528 <code>str()<\/code> \u51fd\u6570<\/h4>\n<\/p>\n<p><p><code>str()<\/code>\u51fd\u6570\u53ef\u4ee5\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528<code>+<\/code>\u64cd\u4f5c\u7b26\u5c06\u5176\u8fde\u63a5\u5230\u5176\u4ed6\u5b57\u7b26\u4e32\u4e0a\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>name = &quot;David&quot;<\/p>\n<p>age = 35<\/p>\n<p>result = &quot;My name is &quot; + name + &quot; and I am &quot; + str(age) + &quot; years old.&quot;<\/p>\n<p>print(result)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4e0a\u9762\u7684\u4ee3\u7801\u5c06\u8f93\u51fa\uff1a<\/p>\n<\/p>\n<p><pre><code>My name is David and I am 35 years old.<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u79cd\u65b9\u6cd5\u867d\u7136\u7b80\u5355\uff0c\u4f46\u5728\u5904\u7406\u591a\u53d8\u91cf\u548c\u590d\u6742\u683c\u5f0f\u65f6\u4e0d\u5982\u524d\u4e24\u79cd\u65b9\u6cd5\u65b9\u4fbf\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u5177\u4f53\u5e94\u7528\u573a\u666f<\/h3>\n<\/p>\n<p><h4>4.1\u3001\u52a8\u6001\u751f\u6210\u6587\u4ef6\u540d<\/h4>\n<\/p>\n<p><p>\u5728\u6587\u4ef6\u64cd\u4f5c\u4e2d\uff0c\u4f60\u53ef\u80fd\u9700\u8981\u6839\u636e\u53d8\u91cf\u751f\u6210\u52a8\u6001\u6587\u4ef6\u540d\u3002\u4f8b\u5982\uff0c\u4f7f\u7528\u65e5\u671f\u548c\u65f6\u95f4\u751f\u6210\u552f\u4e00\u7684\u65e5\u5fd7\u6587\u4ef6\u540d\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>import datetime<\/p>\n<p>current_time = datetime.datetime.now()<\/p>\n<p>file_name = f&quot;log_{current_time.strftime(&#39;%Y_%m_%d_%H_%M_%S&#39;)}.txt&quot;<\/p>\n<p>print(file_name)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h4>4.2\u3001\u751f\u6210SQL\u67e5\u8be2<\/h4>\n<\/p>\n<p><p>\u5728\u6570\u636e\u5e93\u64cd\u4f5c\u4e2d\uff0c\u751f\u6210\u52a8\u6001SQL\u67e5\u8be2\u662f\u5e38\u89c1\u9700\u6c42\u3002\u4f7f\u7528f-strings\u53ef\u4ee5\u4f7fSQL\u67e5\u8be2\u66f4\u76f4\u89c2\u548c\u6613\u8bfb\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>table_name = &quot;users&quot;<\/p>\n<p>user_id = 123<\/p>\n<p>sql_query = f&quot;SELECT * FROM {table_name} WHERE id = {user_id}&quot;<\/p>\n<p>print(sql_query)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><h3>\u4e94\u3001\u6027\u80fd\u6bd4\u8f83<\/h3>\n<\/p>\n<p><p>\u5728\u6d89\u53ca\u5927\u91cf\u5b57\u7b26\u4e32\u64cd\u4f5c\u65f6\uff0c\u6027\u80fd\u53ef\u80fd\u6210\u4e3a\u4e00\u4e2a\u95ee\u9898\u3002\u4ee5\u4e0b\u662f\u4e09\u79cd\u65b9\u6cd5\u7684\u6027\u80fd\u6bd4\u8f83\u3002<\/p>\n<\/p>\n<p><pre><code class=\"language-python\"># \u793a\u4f8b\u4ee3\u7801\uff1a<\/p>\n<p>import timeit<\/p>\n<p>name = &quot;Eve&quot;<\/p>\n<p>age = 40<\/p>\n<h2><strong>\u4f7f\u7528 str.format()<\/strong><\/h2>\n<p>format_time = timeit.timeit(&#39;result = &quot;My name is {} and I am {} years old.&quot;.format(name, age)&#39;, globals=globals())<\/p>\n<h2><strong>\u4f7f\u7528 f-strings<\/strong><\/h2>\n<p>fstring_time = timeit.timeit(&#39;result = f&quot;My name is {name} and I am {age} years old.&quot;&#39;, globals=globals())<\/p>\n<h2><strong>\u4f7f\u7528 str() \u8f6c\u6362<\/strong><\/h2>\n<p>convert_time = timeit.timeit(&#39;result = &quot;My name is &quot; + name + &quot; and I am &quot; + str(age) + &quot; years old.&quot;&#39;, globals=globals())<\/p>\n<p>print(f&quot;str.format(): {format_time}&quot;)<\/p>\n<p>print(f&quot;f-strings: {fstring_time}&quot;)<\/p>\n<p>print(f&quot;str() conversion: {convert_time}&quot;)<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u901a\u5e38\uff0cf-strings\u7684\u6027\u80fd\u662f\u6700\u597d\u7684\uff0c\u5176\u6b21\u662f<code>str.format()<\/code>\uff0c\u6700\u540e\u662f<code>+<\/code>\u64cd\u4f5c\u7b26\u548c<code>str()<\/code>\u8f6c\u6362\u3002\u8fd9\u662f\u56e0\u4e3af-strings\u5728\u7f16\u8bd1\u65f6\u5c31\u5b8c\u6210\u4e86\u683c\u5f0f\u5316\uff0c\u800c\u5176\u4ed6\u65b9\u6cd5\u5219\u9700\u8981\u5728\u8fd0\u884c\u65f6\u5904\u7406\u3002<\/p>\n<\/p>\n<p><h3>\u516d\u3001\u603b\u7ed3<\/h3>\n<\/p>\n<p><p><strong>Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8fde\u8d77\u6765\u7684\u65b9\u6cd5\u5305\u62ec\uff1a\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u5b57\u7b26\u4e32\u63d2\u503c\u3001\u7c7b\u578b\u8f6c\u6362\u3002<\/strong> \u5728\u73b0\u4ee3Python\u7f16\u7a0b\u4e2d\uff0c\u63a8\u8350\u4f7f\u7528<strong>f-strings<\/strong>\u548c<strong><code>str.format()<\/code><\/strong>\u65b9\u6cd5\uff0c\u56e0\u4e3a\u5b83\u4eec\u63d0\u4f9b\u4e86\u66f4\u9ad8\u7684\u53ef\u8bfb\u6027\u548c\u7075\u6d3b\u6027\u3002\u4e86\u89e3\u8fd9\u4e9b\u65b9\u6cd5\u5e76\u6839\u636e\u5177\u4f53\u9700\u6c42\u9009\u62e9\u5408\u9002\u7684\u65b9\u6cd5\uff0c\u5c06\u5927\u5927\u63d0\u9ad8\u4f60\u7684\u7f16\u7a0b\u6548\u7387\u548c\u4ee3\u7801\u8d28\u91cf\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p> <strong>\u5982\u4f55\u5728Python\u4e2d\u5c06\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8fde\u63a5\u5728\u4e00\u8d77\uff1f<\/strong><br \/>\u5728Python\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528<code>str()<\/code>\u51fd\u6570\u5c06\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u4f7f\u7528\u52a0\u53f7\uff08<code>+<\/code>\uff09\u8fdb\u884c\u8fde\u63a5\u3002\u4f8b\u5982\uff0c\u5982\u679c\u4f60\u6709\u4e00\u4e2a\u5b57\u7b26\u4e32<code>&quot;\u6570\u5b57\u662f&quot;<\/code>\u548c\u4e00\u4e2a\u6570\u5b57<code>5<\/code>\uff0c\u53ef\u4ee5\u8fd9\u6837\u5199\uff1a<code>result = &quot;\u6570\u5b57\u662f&quot; + str(5)<\/code>\u3002\u8fd9\u6837\uff0c<code>result<\/code>\u7684\u503c\u5c06\u53d8\u4e3a<code>&quot;\u6570\u5b57\u662f5&quot;<\/code>\u3002<\/p>\n<p><strong>\u5728Python\u4e2d\uff0c\u662f\u5426\u53ef\u4ee5\u4f7f\u7528\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u8fde\u63a5\u5b57\u7b26\u4e32\u548c\u6570\u5b57\uff1f<\/strong><br \/>\u662f\u7684\uff0cPython\u63d0\u4f9b\u4e86\u591a\u79cd\u683c\u5f0f\u5316\u5b57\u7b26\u4e32\u7684\u65b9\u6cd5\uff0c\u6bd4\u5982f-\u5b57\u7b26\u4e32\u548c<code>format()<\/code>\u65b9\u6cd5\u3002\u4f7f\u7528f-\u5b57\u7b26\u4e32\uff0c\u4f60\u53ef\u4ee5\u76f4\u63a5\u5728\u5b57\u7b26\u4e32\u4e2d\u5d4c\u5165\u53d8\u91cf\uff0c\u4f8b\u5982\uff1a<code>number = 5<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>f&quot;\u6570\u5b57\u662f{number}&quot;<\/code>\uff0c\u7ed3\u679c\u5c06\u662f<code>&quot;\u6570\u5b57\u662f5&quot;<\/code>\u3002\u4f7f\u7528<code>format()<\/code>\u65b9\u6cd5\u4e5f\u975e\u5e38\u7b80\u5355\uff1a<code>&quot;\u6570\u5b57\u662f{}&quot;.format(number)<\/code>\u3002<\/p>\n<p><strong>\u5982\u4f55\u5728Python\u4e2d\u5904\u7406\u591a\u4e2a\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u7684\u8fde\u63a5\uff1f<\/strong><br \/>\u5bf9\u4e8e\u591a\u4e2a\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u7684\u8fde\u63a5\uff0c\u53ef\u4ee5\u4f7f\u7528<code>join()<\/code>\u65b9\u6cd5\u548c\u5217\u8868\u3002\u9996\u5148\uff0c\u5c06\u6240\u6709\u8981\u8fde\u63a5\u7684\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8f6c\u6362\u4e3a\u5b57\u7b26\u4e32\uff0c\u7136\u540e\u5c06\u5b83\u4eec\u653e\u5165\u4e00\u4e2a\u5217\u8868\u4e2d\u3002\u63a5\u7740\uff0c\u4f7f\u7528<code>&quot;&quot;.join(list)<\/code>\u6765\u8fde\u63a5\u3002\u4f8b\u5982\uff1a<code>list = [&quot;\u6570\u5b57\u662f&quot;, str(5), &quot;\u548c&quot;, str(10)]<\/code>\uff0c\u7136\u540e\u4f7f\u7528<code>&quot;&quot;.join(list)<\/code>\uff0c\u7ed3\u679c\u5c06\u662f<code>&quot;\u6570\u5b57\u662f5\u548c10&quot;<\/code>\u3002\u8fd9\u79cd\u65b9\u5f0f\u7279\u522b\u9002\u5408\u5904\u7406\u590d\u6742\u7684\u8fde\u63a5\u4efb\u52a1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06\u5b57\u7b26\u4e32\u548c\u6570\u5b57\u8fde\u8d77\u6765\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e09\u79cd\u4e3b\u8981\u65b9\u6cd5\uff1a\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u3001\u5b57\u7b26\u4e32\u63d2\u503c\u3001\u7c7b\u578b\u8f6c\u6362\u3002 \u4f7f\u7528\u5b57\u7b26\u4e32\u683c\u5f0f\u5316\u548c\u5b57\u7b26\u4e32\u63d2 [&hellip;]","protected":false},"author":3,"featured_media":1141928,"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\/1141921"}],"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=1141921"}],"version-history":[{"count":"1","href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1141921\/revisions"}],"predecessor-version":[{"id":1141929,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/1141921\/revisions\/1141929"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/1141928"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=1141921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=1141921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=1141921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}