{"id":72544,"date":"2026-02-05T23:05:47","date_gmt":"2026-02-05T15:05:47","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/72544.html"},"modified":"2026-02-05T23:05:47","modified_gmt":"2026-02-05T15:05:47","slug":"21%e9%87%8d%e8%b0%88%e9%87%8d%e5%ae%9a%e4%b9%89%e7%90%86%e8%a7%a3%e4%b8%80%e5%88%87%e7%9a%86%e6%96%87%e4%bb%b6%e5%8f%8a%e7%bc%93%e5%ad%98%e5%8c%ba","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/72544.html","title":{"rendered":"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a"},"content":{"rendered":"<p style=\"text-align:center\">&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;Milestone-\u91cc\u7a0b\u7891<\/p>\n<p style=\"text-align:center\">\u2744\ufe0f\u4e2a\u4eba\u4e13\u680f:\u00a0&lt;&lt;\u529b\u6263hot100&gt;&gt;\u00a0&lt;&lt;C&#043;&#043;&gt;&gt;&lt;&lt;Linux&gt;&gt;<\/p>\n<p style=\"text-align:center\">\u00a0 \u00a0 \u00a0 \u00a0&lt;&lt;Git&gt;&gt;&lt;&lt;MySQL&gt;&gt;<\/p>\n<p style=\"text-align:center\">&#x1f31f;\u5fc3\u5411\u5f80\u4e4b\u884c\u5fc5\u80fd\u81f3<\/p>\n<p style=\"text-align:center\">\n<p id=\"main-toc\">\u00a0\u76ee\u5f55<\/p>\n<p id=\"%E4%B8%80.%E9%87%8D%E8%B0%88%E9%87%8D%E5%AE%9A%E4%B9%89-toc\" style=\"margin-left:0px\">\u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49<\/p>\n<p id=\"1.1-toc\" style=\"margin-left:40px\">1.1<\/p>\n<p id=\"%E4%B8%BA%E4%BB%80%E4%B9%88%E6%9C%89%E6%A0%87%E5%87%86%E8%BE%93%E5%87%BA%E4%B8%8E%E6%A0%87%E5%87%86%E9%94%99%E8%AF%AF-toc\" style=\"margin-left:40px\">\u4e3a\u4ec0\u4e48\u6709\u6807\u51c6\u8f93\u51fa\u4e0e\u6807\u51c6\u9519\u8bef<\/p>\n<p id=\"%E4%BA%8C.%E7%90%86%E8%A7%A3%E4%B8%80%E5%88%87%E7%9A%86%22%E6%96%87%E4%BB%B6%22-toc\" style=\"margin-left:0px\">\u4e8c.\u7406\u89e3\u4e00\u5207\u7686&#034;\u6587\u4ef6&#034;<\/p>\n<p id=\"%E4%B8%89.%E7%BC%93%E5%86%B2%E5%8C%BA%20%3A%E8%A7%A3%E5%86%B3%E5%89%8D%E9%9D%A2sleep%E5%88%B7%E6%96%B0%E9%97%AE%E9%A2%98-toc\" style=\"margin-left:0px\">\u4e09.\u7f13\u51b2\u533a :\u89e3\u51b3\u524d\u9762sleep\u5237\u65b0\u95ee\u9898<\/p>\n<p id=\"5-1%20%E4%BB%80%E4%B9%88%E6%98%AF%E7%BC%93%E5%86%B2%E5%8C%BA-toc\" style=\"margin-left:40px\">5-1 \u4ec0\u4e48\u662f\u7f13\u51b2\u533a<\/p>\n<p id=\"5.2%20%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E6%9C%89-toc\" style=\"margin-left:40px\">5.2 \u4e3a\u4ec0\u4e48\u8981\u6709<\/p>\n<p id=\"5.3%20%E7%BC%93%E5%86%B2%E7%B1%BB%E5%9E%8B-toc\" style=\"margin-left:40px\">5.3 \u7f13\u51b2\u7c7b\u578b<\/p>\n<p id=\"5.4%20%E4%BB%A3%E7%A0%81%E5%AE%9E%E6%88%98-toc\" style=\"margin-left:40px\">5.4 \u4ee3\u7801\u5b9e\u6218<\/p>\n<p id=\"%E5%9B%9B%2C%E8%AE%BE%E8%AE%A1%E7%AE%80%E5%8D%95%E7%9A%84libc%E5%BA%93-toc\" style=\"margin-left:0px\">\u56db,\u8bbe\u8ba1\u7b80\u5355\u7684libc\u5e93<\/p>\n<hr id=\"hr-toc\" \/>\n<h2>\u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49<\/h2>\n<p>\u5e73\u65f6\u6211\u4eec\u91cd\u5b9a\u4e49\u7684\u5199\u6cd5<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out &gt; log.txt<\/p>\n<p>\u4f46\u5176\u5b9e\u662f\u7701\u7565\u4e861,\u7cfb\u7edf\u9ed8\u8ba4\u662f1(\u6807\u51c6\u8f93\u51fa)\u7684\u91cd\u5b9a\u5411\u5199\u5165<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out 1 &gt; log.txt <\/p>\n<h3 id=\"1.1\">1.1<\/h3>\n<p> 1 #include &lt;cstdio&gt;<br \/>\n  2 #include&lt;iostream&gt;<br \/>\n  3 using namespace std;<br \/>\n  4 int main()<br \/>\n  5 {<br \/>\n  6   cout&lt;&lt;&#034;hello cout&#034;&lt;&lt;endl;<br \/>\n  7   printf(&#034;hello printf\\\\n&#034;);<br \/>\n  8   cerr&lt;&lt;&#034;hello cerr&#034;&lt;&lt;endl;<br \/>\n  9   fprintf(stderr,&#034;hello stderr\\\\n&#034;);<br \/>\n 10<br \/>\n 11   return 0;<br \/>\n 12 }<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out<br \/>\nhello cout<br \/>\nhello printf<br \/>\nhello cerr<br \/>\nhello stderr<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out  &gt;log.txt<br \/>\nhello cerr<br \/>\nhello stderr<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out 1 &gt;log.normal 2&gt;log.error<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ cat log.normal<br \/>\nhello cout<br \/>\nhello printf<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ cat log.error<br \/>\nhello cerr<br \/>\nhello stderr<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out &gt; log.normal 2&gt;&gt; log.normal<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ cat log.normal<br \/>\nhello cout<br \/>\nhello printf<br \/>\nhello cerr<br \/>\nhello stderr<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out 1 &gt;log.normal 2&gt;&amp;1<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ cat log.normal<br \/>\nhello cout<br \/>\nhello printf<br \/>\nhello cerr<br \/>\nhello stderr<\/p>\n<h3 id=\"%E4%B8%BA%E4%BB%80%E4%B9%88%E6%9C%89%E6%A0%87%E5%87%86%E8%BE%93%E5%87%BA%E4%B8%8E%E6%A0%87%E5%87%86%E9%94%99%E8%AF%AF\">\u4e3a\u4ec0\u4e48\u6709\u6807\u51c6\u8f93\u51fa\u4e0e\u6807\u51c6\u9519\u8bef<\/h3>\n<p>\u5c06\u5e38\u89c4\u6d88\u606f\u4e0e\u9519\u8bef\u6d88\u606f\u8fdb\u884c\u5206\u79bb<\/p>\n<p>\u90fd\u6253\u5370\u5230\u4e00\u4e2a\u6587\u4ef6\u5462<\/p>\n<p>\u4f8b\u5b50<\/p>\n<p>\u5bf9\u8f93\u51fa\u8fdb\u884c\u91cd\u5b9a\u5411\u540e<\/p>\n<p>  1  #include&lt;stdio.h&gt;<br \/>\n  2  #include&lt;unistd.h&gt;<br \/>\n  3  #include&lt;sys\/types.h&gt;<br \/>\n  4  #include&lt;string.h&gt;<br \/>\n  5 #include&lt;sys\/stat.h&gt;<br \/>\n  6 #include&lt;fcntl.h&gt;<br \/>\n  7 #include&lt;stdio.h&gt;<br \/>\n  8 #include &lt;iostream&gt;<br \/>\n  9 int main()<br \/>\n 10 {<br \/>\n 11   int fd &#061;open(&#034;myfile.c&#034;,O_CREAT | O_WRONLY| O_TRUNC,0666);<br \/>\n 12   dup2(fd,1);<br \/>\n 13   printf(&#034;hello printf\\\\n&#034;);<br \/>\n 14 std::cout&lt;&lt;&#034;hello cout&#034;&lt;&lt;std::endl;<br \/>\n 15   std::cerr&lt;&lt;&#034;hello cerr&#034;&lt;&lt;std::endl;<br \/>\n 16   close(fd);<br \/>\n 17   return 0;<br \/>\n 18 }<\/p>\n<p>\u53d1\u73b0\u6807\u51c6\u9519\u8bef\u6ca1\u6709\u6539\u53d8\u8f93\u5165\u6587\u4ef6<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 7]$ g&#043;&#043; 1.c<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ .\/a.out<br \/>\nhello cerr<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ vim 1.c<br \/>\n[lcb&#064;hcss-ecs-1cde 7]$ cat myfile.c<br \/>\nhello printf<br \/>\nhello cout<\/p>\n<h2 id=\"%E4%BA%8C.%E7%90%86%E8%A7%A3%E4%B8%80%E5%88%87%E7%9A%86%22%E6%96%87%E4%BB%B6%22\">\u4e8c.\u7406\u89e3\u4e00\u5207\u7686&#034;\u6587\u4ef6&#034;<\/h2>\n<p> <span style=\"color:#1f2329\">\u5982\u8fdb\u7a0b\u3001\u78c1\u76d8\u3001\u663e\u2f70\u5668\u3001\u952e\u76d8\u8fd9\u6837\u786c\u4ef6\u8bbe\u5907\u4e5f\u88ab\u62bd\u8c61\u6210\u4e86\u2f42\u4ef6&#xff0c;\u4f60\u53ef\u4ee5\u4f7f\u2f64\u8bbf\u95ee\u2f42\u4ef6\u7684\u2f45\u6cd5\u8bbf <\/span><\/p>\n<p> <span style=\"color:#1f2329\">\u95ee\u5b83\u4eec\u83b7\u5f97\u4fe1\u606f&#xff1b;\u751a\u2f84\u7ba1\u9053&#xff0c;\u4e5f\u662f\u2f42\u4ef6<\/span><\/p>\n<p>   <span style=\"color:#1f2329\">\u5f00\u53d1\u8005\u4ec5\u9700\u8981\u4f7f\u2f64\u2f00\u5957 API \u548c\u5f00\u53d1\u2f2f\u5177&#xff0c;\u5373\u53ef\u8c03\u53d6 Linux \u7cfb\u7edf\u4e2d\u7edd\u2f24\u90e8\u5206\u7684\u8d44\u6e90\u3002\u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u2f26&#xff0c;Linux \u4e2d\u2f0f\u4e4e\u6240\u6709\u8bfb&#xff08;\u8bfb\u2f42\u4ef6&#xff0c;\u8bfb\u7cfb\u7edf\u72b6\u6001&#xff0c;\u8bfbPIPE&#xff09;\u7684\u64cd\u4f5c\u90fd\u53ef\u4ee5\u2f64 read \u51fd\u6570\u6765\u8fdb\u2f8f&#xff1b;\u2f0f\u4e4e\u6240\u6709\u66f4\u6539&#xff08;\u66f4\u6539\u2f42\u4ef6&#xff0c;\u66f4\u6539\u7cfb\u7edf\u53c2\u6570&#xff0c;\u5199 PIPE&#xff09;\u7684\u64cd\u4f5c\u90fd\u53ef\u4ee5\u2f64 write <\/span><br \/>\n   <span style=\"color:#1f2329\">\u51fd\u6570\u6765\u8fdb\u2f8f\u3002<\/span><\/p>\n<p>  struct file {<br \/>\n&#8230;<br \/>\n1<br \/>\n2<br \/>\n3<br \/>\n4<br \/>\nstruct inode *f_inode; \/* cached value *\/<br \/>\nconst struct file_operations *f_op;<br \/>\n&#8230;<br \/>\natomic_long_t f_count; \/\/ \u8868\u2f70\u6253\u5f00\u2f42\u4ef6\u7684\u5f15\u2f64\u8ba1\u6570&#xff0c;\u5982\u679c\u6709\u591a\u4e2a\u2f42\u4ef6\u6307\u9488\u6307<br \/>\n\u5411\u5b83&#xff0c;\u5c31\u4f1a\u589e\u52a0f_count\u7684\u503c\u3002<br \/>\nunsigned int f_flags; \/\/ \u8868\u2f70\u6253\u5f00\u2f42\u4ef6\u7684\u6743\u9650<br \/>\nfmode_t f_mode; \/\/ \u8bbe\u7f6e\u5bf9\u2f42\u4ef6\u7684\u8bbf\u95ee\u6a21\u5f0f,\u4f8b\u5982&#xff1a;\u53ea\u8bfb&#xff0c;\u53ea\u5199\u7b49\u3002\u6240<br \/>\n\u6709\u7684\u6807\u5fd7\u5728\u5934\u2f42\u4ef6&lt;fcntl.h&gt; \u4e2d\u5b9a\u4e49<br \/>\nloff_t f_pos; \/\/ \u8868\u2f70\u5f53\u524d\u8bfb\u5199\u2f42\u4ef6\u7684\u4f4d\u7f6e<br \/>\n&#8230;<br \/>\n} __attribute__((aligned(4))); \/* lest something weird decides that 2 is OK<br \/>\n*\/ <\/p>\n<h2 id=\"%E4%B8%89.%E7%BC%93%E5%86%B2%E5%8C%BA%20%3A%E8%A7%A3%E5%86%B3%E5%89%8D%E9%9D%A2sleep%E5%88%B7%E6%96%B0%E9%97%AE%E9%A2%98\">\u4e09.\u7f13\u51b2\u533a :\u89e3\u51b3\u524d\u9762sleep\u5237\u65b0\u95ee\u9898<\/h2>\n<h3 id=\"5-1%20%E4%BB%80%E4%B9%88%E6%98%AF%E7%BC%93%E5%86%B2%E5%8C%BA\"><span style=\"color:#1f2329\">5-1 \u4ec0\u4e48\u662f\u7f13\u51b2\u533a <\/span><\/h3>\n<p>   <span style=\"color:#1f2329\">\u7f13\u51b2\u533a\u662f\u5185\u5b58\u7a7a\u95f4\u7684\u2f00\u90e8\u5206\u3002\u4e5f\u5c31\u662f\u8bf4&#xff0c;\u5728\u5185\u5b58\u7a7a\u95f4\u4e2d\u9884\u7559\u4e86\u2f00\u5b9a\u7684\u5b58\u50a8\u7a7a\u95f4&#xff0c;\u8fd9\u4e9b\u5b58\u50a8\u7a7a\u95f4\u2f64\u6765\u7f13\u51b2\u8f93\u2f0a\u6216\u8f93\u51fa\u7684\u6570\u636e&#xff0c;\u8fd9\u90e8\u5206\u9884\u7559\u7684\u7a7a\u95f4\u5c31\u53eb\u505a\u7f13\u51b2\u533a\u3002\u7f13\u51b2\u533a\u6839\u636e\u5176\u5bf9\u5e94\u7684\u662f\u8f93\u2f0a\u8bbe\u5907\u8fd8\u662f\u8f93\u51fa\u8bbe \u5907&#xff0c;\u5206\u4e3a\u8f93\u2f0a\u7f13\u51b2\u533a\u548c\u8f93\u51fa\u7f13\u51b2\u533a\u3002<\/span><\/p>\n<h3 id=\"5.2%20%E4%B8%BA%E4%BB%80%E4%B9%88%E8%A6%81%E6%9C%89\">5.2 \u4e3a\u4ec0\u4e48\u8981\u6709<\/h3>\n<p> <span style=\"color:#1f2329\">\u8bfb\u5199\u2f42\u4ef6\u65f6&#xff0c;\u5982\u679c\u4e0d\u4f1a\u5f00\u8f9f\u5bf9\u2f42\u4ef6\u64cd\u4f5c\u7684\u7f13\u51b2\u533a&#xff0c;\u76f4\u63a5\u901a\u8fc7\u7cfb\u7edf\u8c03\u2f64\u5bf9\u78c1\u76d8\u8fdb\u2f8f\u64cd\u4f5c(\u8bfb\u3001\u5199\u7b49)&#xff0c;\u90a3\u4e48 \u6bcf\u6b21\u5bf9\u2f42\u4ef6\u8fdb\u2f8f\u2f00\u6b21\u8bfb\u5199\u64cd\u4f5c\u65f6&#xff0c;\u90fd\u9700\u8981\u4f7f\u2f64\u8bfb\u5199\u7cfb\u7edf\u8c03\u2f64\u6765\u5904\u7406\u6b64\u64cd\u4f5c&#xff0c;\u5373\u9700\u8981\u6267\u2f8f\u2f00\u6b21\u7cfb\u7edf\u8c03 \u2f64&#xff0c;\u6267\u2f8f\u2f00\u6b21\u7cfb\u7edf\u8c03\u2f64\u5c06\u6d89\u53ca\u5230CPU\u72b6\u6001\u7684\u5207\u6362&#xff0c;\u5373\u4ece\u2f64\u2f3e\u7a7a\u95f4\u5207\u6362\u5230\u5185\u6838\u7a7a\u95f4&#xff0c;\u5b9e\u73b0\u8fdb\u7a0b\u4e0a\u4e0b\u2f42\u7684 \u5207\u6362&#xff0c;\u8fd9\u5c06\u635f\u8017\u2f00\u5b9a\u7684CPU\u65f6\u95f4&#xff0c;\u9891\u7e41\u7684\u78c1\u76d8\u8bbf\u95ee\u5bf9\u7a0b\u5e8f\u7684\u6267\u2f8f\u6548\u7387\u9020\u6210\u5f88\u2f24\u7684\u5f71\u54cd\u3002 <\/span><\/p>\n<p> <span style=\"color:#1f2329\">\u4e3a\u4e86\u51cf\u5c11\u4f7f\u2f64\u7cfb\u7edf\u8c03\u2f64\u7684\u6b21\u6570&#xff0c;\u63d0\u2fbc\u6548\u7387&#xff0c;\u6211\u4eec\u5c31\u53ef\u4ee5\u91c7\u2f64\u7f13\u51b2\u673a\u5236\u3002\u2f50\u5982\u6211\u4eec\u4ece\u78c1\u76d8\u2fa5\u53d6\u4fe1\u606f\u53ef <\/span><\/p>\n<p> <span style=\"color:#1f2329\">\u4ee5\u5728\u78c1\u76d8\u2f42\u4ef6\u8fdb\u2f8f\u64cd\u4f5c\u65f6&#xff0c;\u53ef\u4ee5\u2f00\u6b21\u4ece\u2f42\u4ef6\u4e2d\u8bfb\u51fa\u2f24\u91cf\u7684\u6570\u636e\u5230\u7f13\u51b2\u533a\u4e2d&#xff0c;\u4ee5\u540e\u5bf9\u8fd9\u90e8\u5206\u7684\u8bbf\u95ee\u5c31\u4e0d \u9700\u8981\u518d\u4f7f\u2f64\u7cfb\u7edf\u8c03\u2f64\u4e86&#xff0c;\u7b49\u7f13\u51b2\u533a\u7684\u6570\u636e\u53d6\u5b8c\u540e\u518d\u53bb\u78c1\u76d8\u4e2d\u8bfb\u53d6&#xff0c;\u8fd9\u6837\u5c31\u53ef\u4ee5\u51cf\u5c11\u78c1\u76d8\u7684\u8bfb\u5199\u6b21\u6570&#xff0c;\u518d\u52a0\u4e0a\u8ba1\u7b97\u673a\u5bf9\u7f13\u51b2\u533a\u7684\u64cd\u4f5c\u2f24 \u5feb\u4e8e\u5bf9\u78c1\u76d8\u7684\u64cd\u4f5c&#xff0c;\u6545\u5e94\u2f64\u7f13\u51b2\u533a\u53ef\u2f24 \u63d0\u2fbc\u8ba1\u7b97\u673a\u7684\u8fd0\u2f8f\u901f\u5ea6\u3002<\/span><\/p>\n<p>\u5982\u4f60\u4e70\u4e86\u4e00\u5927\u5806\u5feb\u9012,\u5982\u679c\u6765\u4e00\u4e2a,\u6253\u7535\u8bdd\u53eb\u4f60\u53bb\u62ff,\u4f60\u5c31\u8981\u4e2d\u6b62\u81ea\u5df1\u7684\u4e8b\u53bb\u62ff,\u4f46\u5982\u679c\u6709\u4e86\u83dc\u9e1f\u9a7f\u7ad9,\u5c31\u53ef\u4ee5\u4e00\u5b9a\u6570\u91cf\u518d\u53bb\u62ff,\u6548\u7387\u5927\u5927\u63d0\u9ad8<\/p>\n<h3 id=\"5.3%20%E7%BC%93%E5%86%B2%E7%B1%BB%E5%9E%8B\">5.3 \u7f13\u51b2\u7c7b\u578b<\/h3>\n<p> <span style=\"color:#1f2329\">\u6807\u51c6I\/O\u63d0\u4f9b\u4e863\u79cd\u7c7b\u578b\u7684\u7f13\u51b2\u533a\u3002 <\/span><\/p>\n<p> <span style=\"color:#1456f0\">\u2022 <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u5168\u7f13\u51b2\u533a&#xff1a;\u8fd9\u79cd\u7f13\u51b2\u2f45\u5f0f\u8981\u6c42\u586b\u6ee1\u6574\u4e2a\u7f13\u51b2\u533a\u540e\u624d\u8fdb\u2f8fI\/O\u7cfb\u7edf\u8c03\u2f64\u64cd\u4f5c\u3002\u5bf9\u4e8e\u78c1\u76d8\u2f42\u4ef6\u7684\u64cd\u4f5c\u901a <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u5e38\u4f7f\u2f64\u5168\u7f13\u51b2\u7684\u2f45\u5f0f\u8bbf\u95ee\u3002 <\/span><\/p>\n<p> <span style=\"color:#1456f0\">\u2022 <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u2f8f\u7f13\u51b2\u533a&#xff1a;\u5728\u2f8f\u7f13\u51b2\u60c5\u51b5\u4e0b&#xff0c;\u5f53\u5728\u8f93\u2f0a\u548c\u8f93\u51fa\u4e2d\u9047\u5230\u6362\u2f8f\u7b26\u65f6&#xff0c;\u6807\u51c6I\/O\u5e93\u51fd\u6570\u5c06\u4f1a\u6267\u2f8f\u7cfb\u7edf\u8c03\u2f64 <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u64cd\u4f5c\u3002\u5f53\u6240\u64cd\u4f5c\u7684\u6d41\u6d89\u53ca\u2f00\u4e2a\u7ec8\u7aef\u65f6&#xff08;\u4f8b\u5982\u6807\u51c6\u8f93\u2f0a\u548c\u6807\u51c6\u8f93\u51fa&#xff09;&#xff0c;\u4f7f\u2f64\u2f8f\u7f13\u51b2\u2f45\u5f0f\u3002\u56e0\u4e3a\u6807\u51c6 <\/span><\/p>\n<p> <span style=\"color:#646a73\">I\/O\u5e93\u6bcf\u2f8f\u7684\u7f13\u51b2\u533a\u2ed3\u5ea6\u662f\u56fa\u5b9a\u7684&#xff0c;\u6240\u4ee5\u53ea\u8981\u586b\u6ee1\u4e86\u7f13\u51b2\u533a&#xff0c;\u5373\u4f7f\u8fd8\u6ca1\u6709\u9047\u5230\u6362\u2f8f\u7b26&#xff0c;\u4e5f\u4f1a\u6267\u2f8f <\/span><\/p>\n<p> <span style=\"color:#646a73\">I\/O\u7cfb\u7edf\u8c03\u2f64\u64cd\u4f5c&#xff0c;\u9ed8\u8ba4\u2f8f\u7f13\u51b2\u533a\u7684\u2f24\u2f29\u4e3a1024\u3002 <\/span><\/p>\n<p>  <span style=\"color:#646a73\">\u4e3a\u4e86\u7b26\u5408\u7528\u6237\u9605\u8bfb\u4e60\u60ef<\/span><\/p>\n<p> <span style=\"color:#1456f0\">\u2022 <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u2f46\u7f13\u51b2\u533a&#xff1a;\u2f46\u7f13\u51b2\u533a\u662f\u6307\u6807\u51c6I\/O\u5e93\u4e0d\u5bf9\u5b57\u7b26\u8fdb\u2f8f\u7f13\u5b58&#xff0c;\u76f4\u63a5\u8c03\u2f64\u7cfb\u7edf\u8c03\u2f64\u3002\u6807\u51c6\u51fa\u9519\u6d41stderr\u901a <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u5e38\u662f\u4e0d\u5e26\u7f13\u51b2\u533a\u7684&#xff0c;\u8fd9\u4f7f\u5f97\u51fa\u9519\u4fe1\u606f\u80fd\u591f\u5c3d\u5feb\u5730\u663e\u2f70\u51fa\u6765\u3002 <\/span><\/p>\n<p> <span style=\"color:#646a73\">\u9664\u4e86\u4e0a\u8ff0\u5217\u4e3e\u7684\u9ed8\u8ba4\u5237\u65b0\u2f45\u5f0f&#xff0c;\u4e0b\u5217\u7279\u6b8a\u60c5\u51b5\u4e5f\u4f1a\u5f15\u53d1\u7f13\u51b2\u533a\u7684\u5237\u65b0&#xff1a; <\/span><\/p>\n<p> <span style=\"color:#1456f0\">1. <\/span><br \/>\n <span style=\"color:#646a73\">\u7f13\u51b2\u533a\u6ee1\u65f6&#xff1b; <\/span><\/p>\n<p> <span style=\"color:#1456f0\">2. <\/span><br \/>\n <span style=\"color:#646a73\">\u6267\u2f8fflush\u8bed\u53e5&#xff1b; <\/span><\/p>\n<p> <span style=\"color:#1456f0\">3. <\/span><br \/>\n <span style=\"color:#646a73\">\u8fdb\u7a0b\u7ed3\u675f<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2048\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260205150542-6984b1c6a7323.png\" width=\"2048\" \/><\/p>\n<\/p>\n<h3 id=\"5.4%20%E4%BB%A3%E7%A0%81%E5%AE%9E%E6%88%98\">5.4 \u4ee3\u7801\u5b9e\u6218<\/h3>\n<p> #include&lt;stdio.h&gt;<br \/>\n    2 #include&lt;unistd.h&gt;<br \/>\n    3 #include&lt;stdlib.h&gt;<br \/>\n    4 int main()<br \/>\n    5 {<br \/>\n    6   \/\/\u5e93\u51fd\u6570<br \/>\n    7   printf(&#034;hello printf\\\\n&#034;);<br \/>\n    8   fprintf(stdout,&#034;hello fprintf\\\\n&#034;);<br \/>\n    9   const char*s&#061;&#034;hello fwrite\\\\n&#034;;<br \/>\nE&gt; 10   fwrite(s,strlen(s),1,stdout);<br \/>\n   11<br \/>\n   12   \/\/\u7cfb\u7edf\u8c03\u7528<br \/>\n   13   const char*ss&#061;&#034;hello write\\\\n&#034;;<br \/>\nE&gt; 14   write(1,ss,strlen(ss));<br \/>\n   15   fork();<br \/>\n   16   return 0;<br \/>\n   17 }<br \/>\n  ~<\/p>\n<p>\u7ed3\u679c\u601d\u8003<\/p>\n<p>[lcb&#064;hcss-ecs-1cde 8]$ .\/a.out<br \/>\nhello printf<br \/>\nhello fprintf<br \/>\nhello fwrite<br \/>\nhello write<br \/>\n[lcb&#064;hcss-ecs-1cde 8]$ .\/a.out &gt; log.txt<br \/>\n[lcb&#064;hcss-ecs-1cde 8]$ cat log.txt<br \/>\nhello write<br \/>\nhello printf<br \/>\nhello fprintf<br \/>\nhello fwrite<br \/>\nhello printf<br \/>\nhello fprintf<br \/>\nhello fwrite<\/p>\n<p>\u4e3a\u4ec0\u4e48\u76f4\u63a5\u5c55\u5f00\u4e0e\u91cd\u5b9a\u5411\u5c55\u5f00,\u7ed3\u679c\u4e0d\u4e00\u6837<\/p>\n<p>\u539f\u56e0\u662f\u91cd\u5b9a\u5411,\u5bfc\u81f4\u7a0b\u5e8f\u8fd8\u672a\u7ed3\u675f,\u90a3\u4e48\u5b50\u8fdb\u7a0b\u7ed3\u675f,\u5c31\u4f1a\u5237\u65b0\u4e00\u6b21,\u7236\u8fdb\u7a0b\u7ed3\u675f,\u518d\u5237\u65b0\u4e00\u6b21<\/p>\n<h2 id=\"%E5%9B%9B%2C%E8%AE%BE%E8%AE%A1%E7%AE%80%E5%8D%95%E7%9A%84libc%E5%BA%93\" style=\"background-color:transparent\">\u56db,\u8bbe\u8ba1\u7b80\u5355\u7684libc\u5e93<\/h2>\n<p>mystdio.c<\/p>\n<p>#include&#034;mystdio.h&#034;<br \/>\n    2 #include&lt;string.h&gt;<br \/>\n    3 MyFile*bymyfile(int flag,int fd )<br \/>\n    4 {<br \/>\nE&gt;  5   MyFile*file&#061;(Myfile*)malloc(sizeof(MyFile));<br \/>\n    6   file-&gt;filefd&#061;fd;<br \/>\n    7   file-&gt;flag&#061;flag;<br \/>\n    8   file-&gt;flushflag&#061;Line_flush;<br \/>\n    9   file-&gt;bufferlen&#061;0;<br \/>\n   10   memset(file-&gt;outbuffer,0,sizeof(file-&gt;outbuffer));<br \/>\n   11 }<br \/>\nE&gt; 12 MyFile*Myfileopenl(const char* path,cosnt char*mode)<br \/>\n   13 {<br \/>\n   14   int fd&#061;-1;<br \/>\n   15   int flag&#061;0;<br \/>\nE&gt; 16   if(strcmp(mode,&#034;w&#034;)&#061;&#061;0)<br \/>\n   17   {<br \/>\nE&gt; 18     flag&#061;  O_CREAT | O_WRONLY | O_TRUNC;<br \/>\nE&gt; 19     fd&#061;open(path,flag,0666);<br \/>\n   20<br \/>\n   21   }<br \/>\nE&gt; 22   else if(strcmp(mode,&#034;a&#034;)&#061;&#061;0)<br \/>\n   23   {<br \/>\nE&gt; 24       flag&#061; O_CREAT | O_WRONLY | O_APPEND;<br \/>\nE&gt; 25      fd&#061;open(path,flag,0666);<br \/>\n   26   }<br \/>\nE&gt; 27   else if(strcmp(mode,&#034;r&#034;)&#061;&#061;0)<br \/>\n   28   {<br \/>\nE&gt; 29     flag &#061; O_RDWE<br \/>\nE&gt; 30     fd&#061;open(path,flag,0666);<br \/>\n   31   }<br \/>\nE&gt; 32   if(fd &#061;&#061;-1) reutnr NULL;<br \/>\n   33   return bymyfile(flag,fd);<br \/>\n   34 }<br \/>\n   35 void Myfileclose(MyFile*file)<br \/>\n   36 {<br \/>\n   37   if(file-&gt;filefd&lt;0) return;<br \/>\n   38    Myflush();<br \/>\n   39     close(file-&gt;filefd);<br \/>\n   40     free(file);<br \/>\n   41 }<br \/>\n   42 int*Myfilewrite(MyFile*file,const char * ptr,size_t len)<br \/>\n   43 {<br \/>\n   44   \/\/\u5199\u5165\u5373\u4f7f\u62f7\u8d1d<br \/>\n   45   memcpy(file-&gt;outbuffer&#043;file-&gt;bufferlen,ptr,len);<br \/>\n   46   file-&gt;bufferlen&#043;&#061;len;<br \/>\n   47   \/\/2.\u5c1d\u8bd5\u5224\u65ad\u662f\u5426\u6ee1\u8db3\u5237\u65b0\u6761\u4ef6<br \/>\n   48   if(file-&gt;flushflag&amp;Line_FLUSH&amp;&amp;file-&gt;outbuffer[file-&gt;bufferlen-1]&#061;&#061;&#039;\\\\n&#039;)<br \/>\n   49     Myflush(file);<br \/>\n   50 }<br \/>\n   51 void Myflush(MyFile*file)<br \/>\n   52 {<br \/>\n   53   if(file-&gt;filefd&lt;0) return;<br \/>\n   54   \/\/\u5199\u5165\u5373\u662f\u62f7\u8d1d<br \/>\n   55   write(file-&gt;filefd,file-&gt;outbuffer,file-&gt;bufferlen);<br \/>\n   56   file-&gt;bufferlen&#061;0;<br \/>\n   57 }<\/p>\n<p>mystdio.h<\/p>\n<p> #pragma once                                                                                                   1 #include&#034;mystdio.h&#034;<br \/>\n    2 #include&lt;stdio.h&gt;                                                                                           |    2 #include&lt;string.h&gt;<br \/>\n    3 #define MAX_SIZE 1024                                                                                       |    3 MyFile*bymyfile(int flag,int fd )<br \/>\n    4 #define none_flush 0001                                                                                     |    4 {<br \/>\n    5 #define Line_flush 0002                                                                                     |E&gt;  5   MyFile*file&#061;(Myfile*)malloc(sizeof(MyFile));<br \/>\n    6 #define ALL_flush 0003                                                                                      |    6   file-&gt;filefd&#061;fd;<br \/>\n    7 typedef struct MyFile{                                                                                      |    7   file-&gt;flag&#061;flag;<br \/>\n    8   int filefd;\/\/\u6587\u4ef6\u6807\u8bc6\u7b26                                                                                   |    8   file-&gt;flushflag&#061;Line_flush;<br \/>\n    9   int flag;\/\/                                                                                               |    9   file-&gt;bufferlen&#061;0;<br \/>\n   10   int flushflag;                                                                                            |   10   memset(file-&gt;outbuffer,0,sizeof(file-&gt;outbuffer));<br \/>\n   11   char outbuffer[1024];                                                                                     |   11 }<br \/>\n   12   int bufferlen;                                                                                            |E&gt; 12 MyFile*Myfileopenl(const char* path,cosnt char*mode)<br \/>\n   13 } MyFile;                                                                                                   |   13 {<br \/>\nE&gt; 14 MyFile*Myfileopenl(const char* path,cont char*mode);                                                        |   14   int fd&#061;-1;<br \/>\n   15 void*Myfileclose(MyFile*file);                                                                              |   15   int flag&#061;0;<br \/>\n   16 int*Myfilewrite(const void *ptr,size_t size,size_t numb,MyFile*file);                                       |E&gt; 16   if(strcmp(mode,&#034;w&#034;)&#061;&#061;0)<br \/>\n   17 void Myflush(MyFile*file);           <\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;Milestone-\u91cc\u7a0b\u7891<br \/>\n\u2744\ufe0f\u4e2a\u4eba\u4e13\u680f:\u00a0&lt;&gt;\u00a0&lt;&gt;&lt;&gt; &lt;&gt;&lt;&gt;<br \/>\n&#x1f31f;\u5fc3\u5411\u5f80\u4e4b\u884c\u5fc5\u80fd\u81f3 \u76ee\u5f55<br \/>\n\u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49<br \/>\n1.1<br \/>\n\u4e3a\u4ec0\u4e48\u6709\u6807\u51c6\u8f93\u51fa\u4e0e\u6807\u51c6\u9519\u8bef<br \/>\n\u4e8c.\u7406\u89e3\u4e00\u5207\u7686\\&#8221;\u6587\u4ef6\\&#8221;<br \/>\n\u4e09.\u7f13\u51b2\u533a :\u89e3\u51b3\u524d\u9762sleep\u5237\u65b0\u95ee\u9898<br \/>\n5-1 \u4ec0\u4e48\u662f\u7f13\u51b2\u533a<br \/>\n5.2 \u4e3a\u4ec0\u4e48\u8981\u6709<br \/>\n5.3 \u7f13\u51b2\u7c7b\u578b<br \/>\n5.4 \u4ee3\u7801\u5b9e\u6218<br \/>\n\u56db,\u8bbe\u8ba1\u7b80\u5355\u7684libc\u5e93 \u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49 <\/p>\n","protected":false},"author":2,"featured_media":72543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[55,174,58,190,1813,427,398],"topic":[],"class_list":{"0":"post-72544","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-c","10":"tag-linux","11":"tag-190","12":"tag-1813","13":"tag-427","14":"tag-398"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/72544.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;Milestone-\u91cc\u7a0b\u7891 \u2744\ufe0f\u4e2a\u4eba\u4e13\u680f:\u00a0&lt;&gt;\u00a0&lt;&gt;&lt;&gt; &lt;&gt;&lt;&gt; &#x1f31f;\u5fc3\u5411\u5f80\u4e4b\u884c\u5fc5\u80fd\u81f3 \u76ee\u5f55 \u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49 1.1 \u4e3a\u4ec0\u4e48\u6709\u6807\u51c6\u8f93\u51fa\u4e0e\u6807\u51c6\u9519\u8bef \u4e8c.\u7406\u89e3\u4e00\u5207\u7686&quot;\u6587\u4ef6&quot; \u4e09.\u7f13\u51b2\u533a :\u89e3\u51b3\u524d\u9762sleep\u5237\u65b0\u95ee\u9898 5-1 \u4ec0\u4e48\u662f\u7f13\u51b2\u533a 5.2 \u4e3a\u4ec0\u4e48\u8981\u6709 5.3 \u7f13\u51b2\u7c7b\u578b 5.4 \u4ee3\u7801\u5b9e\u6218 \u56db,\u8bbe\u8ba1\u7b80\u5355\u7684libc\u5e93 \u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/72544.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-02-05T15:05:47+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260205150542-6984b1c6a7323.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72544.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/72544.html\",\"name\":\"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-02-05T15:05:47+00:00\",\"dateModified\":\"2026-02-05T15:05:47+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/72544.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/72544.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/72544.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/72544.html","og_locale":"zh_CN","og_type":"article","og_title":"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f525;\u4e2a\u4eba\u4e3b\u9875&#xff1a;Milestone-\u91cc\u7a0b\u7891 \u2744\ufe0f\u4e2a\u4eba\u4e13\u680f:\u00a0&lt;&gt;\u00a0&lt;&gt;&lt;&gt; &lt;&gt;&lt;&gt; &#x1f31f;\u5fc3\u5411\u5f80\u4e4b\u884c\u5fc5\u80fd\u81f3 \u76ee\u5f55 \u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49 1.1 \u4e3a\u4ec0\u4e48\u6709\u6807\u51c6\u8f93\u51fa\u4e0e\u6807\u51c6\u9519\u8bef \u4e8c.\u7406\u89e3\u4e00\u5207\u7686\"\u6587\u4ef6\" \u4e09.\u7f13\u51b2\u533a :\u89e3\u51b3\u524d\u9762sleep\u5237\u65b0\u95ee\u9898 5-1 \u4ec0\u4e48\u662f\u7f13\u51b2\u533a 5.2 \u4e3a\u4ec0\u4e48\u8981\u6709 5.3 \u7f13\u51b2\u7c7b\u578b 5.4 \u4ee3\u7801\u5b9e\u6218 \u56db,\u8bbe\u8ba1\u7b80\u5355\u7684libc\u5e93 \u4e00.\u91cd\u8c08\u91cd\u5b9a\u4e49","og_url":"https:\/\/www.wsisp.com\/helps\/72544.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-02-05T15:05:47+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/02\/20260205150542-6984b1c6a7323.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/72544.html","url":"https:\/\/www.wsisp.com\/helps\/72544.html","name":"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-02-05T15:05:47+00:00","dateModified":"2026-02-05T15:05:47+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/72544.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/72544.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/72544.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"21:\u91cd\u8c08\u91cd\u5b9a\u4e49\u7406\u89e3\u4e00\u5207\u7686\u201c\u6587\u4ef6\u201c\u53ca\u7f13\u5b58\u533a"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=72544"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/72544\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/72543"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=72544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=72544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=72544"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=72544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}