{"id":260262,"date":"2024-05-15T13:29:15","date_gmt":"2024-05-15T05:29:15","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/260262.html"},"modified":"2024-05-15T13:29:20","modified_gmt":"2024-05-15T05:29:20","slug":"%e6%9c%89%e4%b8%8b%e9%9d%a2%e4%b8%80%e6%ae%b5%e4%bb%a3%e7%a0%81%ef%bc%8c%e5%a6%82%e4%bd%95%e6%8a%8a%e7%bb%93%e6%9e%9c%e8%b5%8b%e5%80%bc%e5%88%b0char-t%e4%b8%ad","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/260262.html","title":{"rendered":"\u6709\u4e0b\u9762\u4e00\u6bb5\u4ee3\u7801\uff0c\u5982\u4f55\u628a\u7ed3\u679c\u8d4b\u503c\u5230char t[]\u4e2d"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27112010\/5effe5af-a999-4860-be39-b89c47166a9b.webp\" alt=\"\u6709\u4e0b\u9762\u4e00\u6bb5\u4ee3\u7801\uff0c\u5982\u4f55\u628a\u7ed3\u679c\u8d4b\u503c\u5230char t[]\u4e2d\" \/><\/p>\n<p><p>\u8981\u5c06\u4ee3\u7801\u7684\u7ed3\u679c\u8d4b\u503c\u5230<code>char<\/code>\u6570\u7ec4<code>t[]<\/code>\u4e2d\uff0c\u60a8\u9700\u8981<strong>\u786e\u5b9a\u7ed3\u679c\u7684\u7c7b\u578b\u3001\u5927\u5c0f<\/strong>\u548c<strong>\u5b57\u7b26\u6570\u7ec4\u7684\u5bb9\u91cf<\/strong>\uff0c\u4ee5\u53ca\u4f7f\u7528<strong>\u9002\u5f53\u7684\u8d4b\u503c\u65b9\u6cd5<\/strong>\u3002\u5177\u4f53\u7684\u8d4b\u503c\u65b9\u6cd5\u53d6\u51b3\u4e8e\u7ed3\u679c\u6570\u636e\u7684\u6765\u6e90\u3002\u4e0b\u9762\u6211\u5c06\u5c55\u5f00\u8be6\u7ec6\u63cf\u8ff0\u5982\u4f55\u9488\u5bf9\u4e0d\u540c\u60c5\u51b5\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9<code>char<\/code>\u6570\u7ec4<code>t[]<\/code>\u3002<\/p>\n<\/p>\n<p><h3>\u4e00\u3001\u9759\u6001\u6587\u672c\u7684\u8d4b\u503c<\/h3>\n<\/p>\n<p><p>\u5047\u8bbe\u6211\u4eec\u6709\u9759\u6001\u6587\u672c\u4fe1\u606f\uff0c\u9700\u8981\u5c06\u5176\u8d4b\u503c\u7ed9<code>char<\/code>\u6570\u7ec4\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">const char *source = &quot;Example text&quot;;<\/p>\n<p>char t[50]; \/\/ \u5047\u8bbet\u8db3\u591f\u5927\u4ee5\u5b58\u50a8source\u4ee5\u53ca\u7a7a\u5b57\u7b26&#039;\\0&#039;\u3002<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528strcpy\u51fd\u6570<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">#include &lt;string.h&gt;<\/p>\n<p>strcpy(t, source);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>strcpy()<\/code>\u51fd\u6570\u53ef\u4ee5\u7b80\u5355\u5730\u5c06<code>source<\/code>\u6307\u5411\u7684\u5b57\u7b26\u4e32\u590d\u5236\u5230<code>t<\/code>\u6570\u7ec4\u4e2d\u3002\u6ce8\u610f\uff0c<code>t<\/code>\u6570\u7ec4\u5fc5\u987b\u8db3\u591f\u5927\uff0c\u4ee5\u907f\u514d\u7f13\u51b2\u533a\u6ea2\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u4e8c\u3001\u52a8\u6001\u8ba1\u7b97\u7ed3\u679c\u7684\u8d4b\u503c<\/h3>\n<\/p>\n<p><p>\u5bf9\u4e8e\u9700\u8981\u901a\u8fc7\u67d0\u4e2a\u51fd\u6570\u8ba1\u7b97\u5f97\u5230\u7684\u6587\u672c\u7ed3\u679c\uff0c\u6bd4\u5982\u4ece\u7528\u6237\u8f93\u5165\u6216\u6587\u4ef6\u8bfb\u53d6\u7684\u6570\u636e\uff0c\u8d4b\u503c\u4f1a\u7a0d\u5fae\u590d\u6742\u4e9b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">char t[50];<\/p>\n<p>\/\/ \u5047\u8bbefunc\u662f\u67d0\u4e2a\u8ba1\u7b97\u7ed3\u679c\u7684\u51fd\u6570\uff0c\u5176\u8fd4\u56de\u4e00\u4e2a\u5b57\u7b26\u6307\u9488\u3002<\/p>\n<p>const char *result = func();<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528strncpy\u51fd\u6570<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">#include &lt;string.h&gt;<\/p>\n<p>\/\/ \u5047\u8bbe\u6211\u4eec\u77e5\u9053result\u7684\u6700\u5927\u957f\u5ea6\u4e0d\u4f1a\u8d85\u8fc7t\u7684\u5927\u5c0f\u3002<\/p>\n<p>strncpy(t, result, sizeof(t) - 1);<\/p>\n<p>t[sizeof(t) - 1] = &#039;\\0&#039;;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u4f7f\u7528<code>strncpy()<\/code>\u53ef\u4ee5\u9632\u6b62\u6570\u7ec4<code>t<\/code>\u7684\u6ea2\u51fa\uff0c\u56e0\u4e3a\u5b83\u9650\u5236\u4e86\u590d\u5236\u7684\u6700\u5927\u5b57\u7b26\u6570\u3002\u6b64\u5916\uff0c\u624b\u52a8\u6dfb\u52a0\u7ec8\u6b62\u5b57\u7b26<code>\\0<\/code>\u786e\u4fdd\u4e86\u5b57\u7b26\u4e32\u7684\u6b63\u786e\u7ec8\u7ed3\u3002<\/p>\n<\/p>\n<p><h3>\u4e09\u3001\u683c\u5f0f\u5316\u6587\u672c\u7ed3\u679c\u7684\u8d4b\u503c<\/h3>\n<\/p>\n<p><p>\u5982\u679c\u9700\u8981\u5c06\u683c\u5f0f\u5316\u540e\u7684\u6587\u672c\u5b58\u50a8\u5230<code>char<\/code>\u6570\u7ec4\u4e2d\uff0c\u5982\u540c<code>printf()<\/code>\u4e00\u6837\u5c06\u6570\u5b57\u548c\u6587\u672c\u7ed3\u5408\u5728\u4e00\u8d77\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">char t[50];<\/p>\n<p>int number = 123;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528<a href=\"https:\/\/docs.pingcode.com\/agile\/scrum\/sprint\" target=\"_blank\">Sprint<\/a>f\u51fd\u6570<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">#include &lt;stdio.h&gt;<\/p>\n<p>\/\/ \u5c06\u6587\u5b57\u548cnumber\u683c\u5f0f\u5316\u5e76\u5b58\u5165t<\/p>\n<p>sprintf(t, &quot;The number is: %d&quot;, number);<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>sprintf()<\/code>\u51fd\u6570\u7684\u529f\u80fd\u7c7b\u4f3c\u4e8e<code>printf()<\/code>\uff0c\u4f46\u5b83\u5c06\u8f93\u51fa\u5199\u5165\u5230\u63d0\u4f9b\u7684<code>char<\/code>\u6570\u7ec4\u800c\u975e\u6807\u51c6\u8f93\u51fa\u3002\u540c\u6837\u8981\u786e\u4fdd<code>t<\/code>\u7684\u5927\u5c0f\u8db3\u4ee5\u5bb9\u7eb3\u6700\u7ec8\u5b57\u7b26\u4e32\u3002<\/p>\n<\/p>\n<p><h3>\u56db\u3001\u62fc\u63a5\u591a\u4e2a\u5b57\u7b26\u4e32\u7ed3\u679c\u7684\u8d4b\u503c<\/h3>\n<\/p>\n<p><p>\u5728\u591a\u4e2a\u4e0d\u540c\u7684\u5b57\u7b26\u4e32\u9700\u8981\u8fde\u63a5\u5728\u4e00\u8d77\u7684\u60c5\u51b5\u4e0b\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">char t[100];<\/p>\n<p>const char *part1 = &quot;Hello&quot;;<\/p>\n<p>const char *part2 = &quot;World&quot;;<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><strong>\u4f7f\u7528strcat\u548cstrncat\u51fd\u6570<\/strong>\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">#include &lt;string.h&gt;<\/p>\n<p>strcpy(t, part1);      \/\/ \u5c06\u7b2c\u4e00\u4e2a\u5b57\u7b26\u4e32\u590d\u5236\u5230t<\/p>\n<p>strcat(t, &quot; &quot;);        \/\/ \u5c06\u4e00\u4e2a\u7a7a\u683c\u52a0\u5230t\u7684\u672b\u5c3e<\/p>\n<p>strncat(t, part2, sizeof(t) - strlen(t) - 1); \/\/ \u6dfb\u52a0\u7b2c\u4e8c\u4e2a\u5b57\u7b26\u4e32<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p><code>strcat()<\/code>\u548c<code>strncat()<\/code>\u7528\u6765\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u62fc\u63a5\u5230\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u5c3e\u90e8\u3002\u4e0e<code>strncpy()<\/code>\u76f8\u4f3c\uff0c<code>strncat()<\/code>\u6709\u52a9\u4e8e\u907f\u514d\u7f13\u51b2\u533a\u6ea2\u51fa\u3002<\/p>\n<\/p>\n<p><h3>\u4e94\u3001\u4f7f\u7528\u5b57\u7b26\u6570\u7ec4\u4f5c\u4e3a\u51fd\u6570\u8f93\u51fa\u53c2\u6570<\/h3>\n<\/p>\n<p><p>\u5728\u4e00\u4e9b\u60c5\u51b5\u4e0b\uff0c\u4e00\u4e2a\u51fd\u6570\u53ef\u80fd\u76f4\u63a5\u5c06\u7ed3\u679c\u5199\u5165\u4f20\u9012\u7ed9\u5b83\u7684\u5b57\u7b26\u6570\u7ec4\u53c2\u6570\u4e2d\uff1a<\/p>\n<\/p>\n<p><pre><code class=\"language-c\">void makeText(char *buffer, size_t size) {<\/p>\n<p>    \/\/ \u6839\u636e\u9700\u8981\u7684\u903b\u8f91\u751f\u6210\u6587\u672c\uff0c\u5e76\u786e\u4fdd\u4e0d\u8981\u8d85\u8fc7size<\/p>\n<p>}<\/p>\n<p>char t[50];<\/p>\n<p>makeText(t, sizeof(t));<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c<code>makeText<\/code>\u51fd\u6570\u8d1f\u8d23\u5904\u7406\u6587\u672c\u7684\u751f\u6210\u548c\u6b63\u786e\u8d4b\u503c\u5230\u63d0\u4f9b\u7684<code>buffer<\/code>\u4e2d\uff0c\u5e76\u540c\u65f6\u786e\u4fdd\u4e0d\u4f1a\u8d85\u51fa\u63d0\u4f9b\u7684<code>size<\/code>\u5927\u5c0f\uff0c\u4ee5\u907f\u514d\u7f13\u51b2\u533a\u6ea2\u51fa\u3002<\/p>\n<\/p>\n<p><p><strong>\u5904\u7406\u7ed3\u679c\u8d4b\u503c\u81f3\u5b57\u7b26\u6570\u7ec4\u662f\u4e00\u4e2a\u6d89\u53ca\u7ec6\u8282\u7684\u4efb\u52a1\uff0c\u9700\u8981\u91cd\u89c6\u5185\u5b58\u7ba1\u7406\u548c\u7a0b\u5e8f\u7684\u5065\u58ee\u6027<\/strong>\u3002\u4e0d\u5f53\u7684\u8d4b\u503c\u64cd\u4f5c\u53ef\u80fd\u5bfc\u81f4\u5b89\u5168\u6f0f\u6d1e\uff0c\u5982\u7f13\u51b2\u533a\u6ea2\u51fa\u3002\u4e00\u5b9a\u8981\u786e\u4fdd\u5728\u4efb\u4f55\u60c5\u51b5\u4e0b<code>t[]<\/code>\u7684\u5927\u5c0f\u90fd\u80fd\u591f\u5bb9\u7eb3\u9884\u671f\u7684\u7ed3\u679c\uff0c\u4e14\u63d0\u4f9b\u5145\u5206\u7684\u9519\u8bef\u68c0\u67e5\u548c\u8f93\u5165\u9a8c\u8bc1\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>\u5982\u4f55\u5728C\u8bed\u8a00\u4e2d\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4\uff08char t[]\uff09\uff1f<\/strong><\/p>\n<p><strong>1. \u4f7f\u7528strcpy\u51fd\u6570\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4<\/strong><\/p>\n<p>\u53ef\u4ee5\u4f7f\u7528C\u8bed\u8a00\u4e2d\u7684strcpy\u51fd\u6570\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4\u3002strcpy\u51fd\u6570\u7528\u4e8e\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u3002\u9996\u5148\uff0c\u786e\u4fdd\u5b57\u7b26\u6570\u7ec4t[]\u5df2\u7ecf\u5b9a\u4e49\u5e76\u5206\u914d\u4e86\u8db3\u591f\u7684\u7a7a\u95f4\u6765\u5b58\u50a8\u7ed3\u679c\u3002\u7136\u540e\u4f7f\u7528strcpy\u51fd\u6570\u5c06\u7ed3\u679c\u590d\u5236\u5230\u5b57\u7b26\u6570\u7ec4\u4e2d\u3002<\/p>\n<p>\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>char result[] = &quot;Hello, World!&quot;; \/\/ \u5047\u8bbe\u8fd9\u662f\u4f60\u8981\u8d4b\u503c\u7ed9t[]\u7684\u7ed3\u679c\nchar t[sizeof(result)]; \/\/ \u5b9a\u4e49\u5b57\u7b26\u6570\u7ec4t[]\nstrcpy(t, result); \/\/ \u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9t[]\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5b57\u7b26\u6570\u7ec4result[]\u6765\u5b58\u50a8\u7ed3\u679c\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528sizeof\u8fd0\u7b97\u7b26\u6765\u83b7\u53d6result[]\u7684\u5927\u5c0f\u5e76\u5728\u5b9a\u4e49\u5b57\u7b26\u6570\u7ec4t[]\u65f6\u4f7f\u7528\u8be5\u5927\u5c0f\u3002\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528strcpy\u51fd\u6570\u5c06\u7ed3\u679c\u590d\u5236\u5230\u5b57\u7b26\u6570\u7ec4t[]\u4e2d\u3002<\/p>\n<p><strong>2. \u4f7f\u7528\u5faa\u73af\u9010\u4e2a\u5b57\u7b26\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4<\/strong><\/p>\n<p>\u9664\u4e86\u4f7f\u7528strcpy\u51fd\u6570\u5916\uff0c\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u5faa\u73af\u9010\u4e2a\u5b57\u7b26\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4\u3002\u8fd9\u79cd\u65b9\u6cd5\u66f4\u9002\u5408\u5728\u6ca1\u6709\u5b57\u7b26\u4e32\u5904\u7406\u51fd\u6570\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528\u3002<\/p>\n<p>\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>char result[] = &quot;Hello, World!&quot;; \/\/ \u5047\u8bbe\u8fd9\u662f\u4f60\u8981\u8d4b\u503c\u7ed9t[]\u7684\u7ed3\u679c\nchar t[sizeof(result)]; \/\/ \u5b9a\u4e49\u5b57\u7b26\u6570\u7ec4t[]\n\nint i;\nfor (i = 0; i &lt; sizeof(result); i++) {\n    t[i] = result[i]; \/\/ \u9010\u4e2a\u5b57\u7b26\u8d4b\u503c\n}\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5b57\u7b26\u6570\u7ec4result[]\u6765\u5b58\u50a8\u7ed3\u679c\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528sizeof\u8fd0\u7b97\u7b26\u6765\u83b7\u53d6result[]\u7684\u5927\u5c0f\u5e76\u5728\u5b9a\u4e49\u5b57\u7b26\u6570\u7ec4t[]\u65f6\u4f7f\u7528\u8be5\u5927\u5c0f\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u4f7f\u7528\u5faa\u73af\u9010\u4e2a\u5b57\u7b26\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4t[]\u3002<\/p>\n<p><strong>3. \u4f7f\u7528\u5b57\u7b26\u4e32\u62f7\u8d1d\u51fd\u6570\uff08strncpy\uff09\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4<\/strong><\/p>\n<p>\u8fd8\u53ef\u4ee5\u4f7f\u7528C\u8bed\u8a00\u4e2d\u7684\u5b57\u7b26\u4e32\u62f7\u8d1d\u51fd\u6570\uff08\u5982strncpy\uff09\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4\u3002strncpy\u51fd\u6570\u7528\u4e8e\u5c06\u4e00\u4e2a\u5b57\u7b26\u4e32\u7684\u524dn\u4e2a\u5b57\u7b26\u590d\u5236\u5230\u53e6\u4e00\u4e2a\u5b57\u7b26\u4e32\u4e2d\u3002\u8bf7\u786e\u4fddn\u7684\u503c\u5c0f\u4e8e\u6216\u7b49\u4e8e\u5b57\u7b26\u6570\u7ec4t[]\u7684\u5927\u5c0f\u3002<\/p>\n<p>\u793a\u4f8b\u4ee3\u7801\u5982\u4e0b\uff1a<\/p>\n<pre><code>char result[] = &quot;Hello, World!&quot;; \/\/ \u5047\u8bbe\u8fd9\u662f\u4f60\u8981\u8d4b\u503c\u7ed9t[]\u7684\u7ed3\u679c\nchar t[sizeof(result)]; \/\/ \u5b9a\u4e49\u5b57\u7b26\u6570\u7ec4t[]\n\nint n = sizeof(t);\nstrncpy(t, result, n); \/\/ \u5c06\u7ed3\u679c\u7684\u524dn\u4e2a\u5b57\u7b26\u8d4b\u503c\u7ed9t[]\n<\/code><\/pre>\n<p>\u5728\u4e0a\u9762\u7684\u793a\u4f8b\u4e2d\uff0c\u6211\u4eec\u9996\u5148\u5b9a\u4e49\u4e86\u4e00\u4e2a\u5b57\u7b26\u6570\u7ec4result[]\u6765\u5b58\u50a8\u7ed3\u679c\u3002\u7136\u540e\uff0c\u6211\u4eec\u4f7f\u7528sizeof\u8fd0\u7b97\u7b26\u6765\u83b7\u53d6result[]\u7684\u5927\u5c0f\u5e76\u5728\u5b9a\u4e49\u5b57\u7b26\u6570\u7ec4t[]\u65f6\u4f7f\u7528\u8be5\u5927\u5c0f\u3002\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u5c06\u5b57\u7b26\u6570\u7ec4t[]\u7684\u5927\u5c0fn\u8d4b\u503c\u4e3asizeof(t)\u7684\u503c\u3002\u6700\u540e\uff0c\u6211\u4eec\u4f7f\u7528strncpy\u51fd\u6570\u5c06\u7ed3\u679c\u7684\u524dn\u4e2a\u5b57\u7b26\u590d\u5236\u5230\u5b57\u7b26\u6570\u7ec4t[]\u4e2d\u3002<\/p>\n<p>\u4ee5\u4e0a\u4e09\u79cd\u65b9\u6cd5\u90fd\u53ef\u4ee5\u5c06\u7ed3\u679c\u8d4b\u503c\u7ed9\u5b57\u7b26\u6570\u7ec4t[]\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u81ea\u5df1\u7684\u9700\u6c42\u9009\u62e9\u5176\u4e2d\u4e4b\u4e00\u8fdb\u884c\u4f7f\u7528\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u8981\u5c06\u4ee3\u7801\u7684\u7ed3\u679c\u8d4b\u503c\u5230char\u6570\u7ec4t[]\u4e2d\uff0c\u60a8\u9700\u8981\u786e\u5b9a\u7ed3\u679c\u7684\u7c7b\u578b\u3001\u5927\u5c0f\u548c\u5b57\u7b26\u6570\u7ec4\u7684\u5bb9\u91cf\uff0c\u4ee5\u53ca\u4f7f\u7528\u9002\u5f53\u7684\u8d4b\u503c\u65b9\u6cd5\u3002 [&hellip;]","protected":false},"author":3,"featured_media":260264,"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\/260262"}],"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=260262"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/260262\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/260264"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=260262"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=260262"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=260262"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}