{"id":33186,"date":"2025-04-27T02:52:15","date_gmt":"2025-04-26T18:52:15","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/33186.html"},"modified":"2025-04-27T02:52:15","modified_gmt":"2025-04-26T18:52:15","slug":"20242817-%e6%9d%8e%e8%87%bb-%e8%af%be%e4%b8%8a%e6%b5%8b%e8%af%95%ef%bc%9a%e4%bf%a1%e5%8f%b7%e5%a4%84%e7%90%86","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/33186.html","title":{"rendered":"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406"},"content":{"rendered":"<h2>\u4e00\u3001\u5b9e\u9a8c\u8981\u6c42<\/h2>\n<li>\u5728 Ubuntu \u6216 openEuler \u4e2d\u5b8c\u6210\u4efb\u52a1&#xff08;\u63a8\u8350openEuler&#xff09;<\/li>\n<li>\u5199\u4e00\u4e2a\u7236\u5b50\u8fdb\u7a0b\u901a\u4fe1\u7a0b\u5e8f\u3002\u7236\u8fdb\u7a0b\u6bcf2\u79d2\u5411\u5b50\u8fdb\u7a0b\u53d1\u9001SIGUSR2\u4fe1\u53f7\u3002\u5b50\u8fdb\u7a0b\u7edf\u8ba1\u6536\u5230\u4fe1\u53f7\u7684\u6b21\u6570&#xff0c;\u5e76\u5728\u6536\u5230\u7b2c5\u6b21\u65f6\u8f93\u51fa\u201cReceived 5 signals, child exit!\u201d&#xff0c;\u7136\u540e\u9000\u51fa\u3002\u7236\u8fdb\u7a0b\u68c0\u6d4b\u5230\u5b50\u8fdb\u7a0b\u9000\u51fa\u540e&#xff08;\u53ef\u901a\u8fc7SIGCHLD\u6216wait&#xff09;&#xff0c;\u8f93\u51fa\u201cChild terminated.\u201d\u5e76\u81ea\u8eab\u9000\u51fa\u3002<\/li>\n<li>\u63d0\u4ea4\u4ee3\u7801\u548c\u8fd0\u884c\u7ed3\u679c\u622a\u56fe\u6216\u6587\u672c<\/li>\n<h2>\u4e8c\u3001\u5b9e\u9a8c\u8fc7\u7a0b<\/h2>\n<h3>1\u3001\u7a0b\u5e8f\u5b9e\u73b0<\/h3>\n<p>test.c<\/p>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdio.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdlib.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;unistd.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;signal.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;sys\/wait.h&gt;<\/span><\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> signal_count <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u8bb0\u5f55\u63a5\u6536\u5230\u7684SIGUSR2\u4fe1\u53f7\u7684\u6b21\u6570<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u5b50\u8fdb\u7a0b\u63a5\u6536\u5230SIGUSR2\u4fe1\u53f7\u7684\u5904\u7406\u51fd\u6570<\/span><br \/>\n<span class=\"token keyword\">void<\/span> <span class=\"token function\">sigusr2_handler<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> sig<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    signal_count<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u6bcf\u63a5\u6536\u5230\u4e00\u4e2aSIGUSR2\u4fe1\u53f7&#xff0c;\u8ba1\u6570\u5668\u52a0\u4e00<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Received signal %d times\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> signal_count<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>    <span class=\"token comment\">\/\/ \u5982\u679c\u63a5\u6536\u5230\u7b2c5\u6b21\u4fe1\u53f7&#xff0c;\u5b50\u8fdb\u7a0b\u9000\u51fa<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>signal_count <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token number\">5<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Received 5 signals, child exit!\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">exit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u5b50\u8fdb\u7a0b\u9000\u51fa<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">pid_t<\/span> pid <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">fork<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u521b\u5efa\u5b50\u8fdb\u7a0b<\/span><\/p>\n<p>    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>pid <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token function\">perror<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;fork failed&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">exit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>pid <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span>  <span class=\"token comment\">\/\/ \u5b50\u8fdb\u7a0b<\/span><br \/>\n        <span class=\"token comment\">\/\/ \u8bbe\u7f6eSIGUSR2\u4fe1\u53f7\u7684\u5904\u7406\u51fd\u6570<\/span><br \/>\n        <span class=\"token function\">signal<\/span><span class=\"token punctuation\">(<\/span>SIGUSR2<span class=\"token punctuation\">,<\/span> sigusr2_handler<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u5b50\u8fdb\u7a0b\u65e0\u9650\u5faa\u73af&#xff0c;\u7b49\u5f85\u4fe1\u53f7<\/span><br \/>\n        <span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token function\">pause<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u7b49\u5f85\u4fe1\u53f7<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">else<\/span> <span class=\"token punctuation\">{<\/span>  <span class=\"token comment\">\/\/ \u7236\u8fdb\u7a0b<\/span><br \/>\n        <span class=\"token function\">sleep<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u7ed9\u5b50\u8fdb\u7a0b\u4e00\u4e9b\u65f6\u95f4\u6765\u8bbe\u7f6e\u4fe1\u53f7\u5904\u7406<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u6bcf2\u79d2\u5411\u5b50\u8fdb\u7a0b\u53d1\u9001SIGUSR2\u4fe1\u53f7<\/span><br \/>\n        <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span><span class=\"token keyword\">int<\/span> i <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span> i <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">5<\/span><span class=\"token punctuation\">;<\/span> i<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n            <span class=\"token function\">sleep<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u6bcf2\u79d2\u53d1\u9001\u4e00\u6b21<\/span><br \/>\n            <span class=\"token function\">kill<\/span><span class=\"token punctuation\">(<\/span>pid<span class=\"token punctuation\">,<\/span> SIGUSR2<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u53d1\u9001SIGUSR2\u4fe1\u53f7\u7ed9\u5b50\u8fdb\u7a0b<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u7b49\u5f85\u5b50\u8fdb\u7a0b\u9000\u51fa&#xff08;\u901a\u8fc7wait\u6216SIGCHLD\u4fe1\u53f7&#xff09;<\/span><br \/>\n        <span class=\"token keyword\">int<\/span> status<span class=\"token punctuation\">;<\/span><br \/>\n        <span class=\"token function\">waitpid<\/span><span class=\"token punctuation\">(<\/span>pid<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">&amp;<\/span>status<span class=\"token punctuation\">,<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u7b49\u5f85\u5b50\u8fdb\u7a0b\u7ed3\u675f<\/span><\/p>\n<p>        <span class=\"token comment\">\/\/ \u5b50\u8fdb\u7a0b\u9000\u51fa\u540e&#xff0c;\u7236\u8fdb\u7a0b\u8f93\u51fa\u4fe1\u606f\u5e76\u9000\u51fa<\/span><br \/>\n        <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;Child terminated.\\\\n&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>        <span class=\"token function\">exit<\/span><span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h3>2\u3001\u7a0b\u5e8f\u89e3\u6790<\/h3>\n<li>\n<p>\u4fe1\u53f7\u5904\u7406&#xff1a;<\/p>\n<ul>\n<li>\u5b50\u8fdb\u7a0b\u4f7f\u7528 signal(SIGUSR2, sigusr2_handler) \u6765\u8bbe\u7f6e SIGUSR2 \u4fe1\u53f7\u7684\u5904\u7406\u51fd\u6570\u3002\u5f53\u5b50\u8fdb\u7a0b\u63a5\u6536\u5230 SIGUSR2 \u4fe1\u53f7\u65f6&#xff0c;sigusr2_handler \u51fd\u6570\u4f1a\u88ab\u8c03\u7528&#xff0c;\u8bb0\u5f55\u4fe1\u53f7\u63a5\u6536\u7684\u6b21\u6570&#xff0c;\u5e76\u5728\u63a5\u6536\u5230\u7b2c 5 \u6b21\u4fe1\u53f7\u65f6\u9000\u51fa\u5b50\u8fdb\u7a0b\u3002<\/li>\n<li>\u7236\u8fdb\u7a0b\u6bcf\u9694 2 \u79d2\u901a\u8fc7 kill(pid, SIGUSR2) \u5411\u5b50\u8fdb\u7a0b\u53d1\u9001\u4e00\u4e2a SIGUSR2 \u4fe1\u53f7\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7236\u5b50\u8fdb\u7a0b\u901a\u4fe1&#xff1a;<\/p>\n<ul>\n<li>\u7236\u8fdb\u7a0b\u901a\u8fc7 fork() \u521b\u5efa\u4e00\u4e2a\u5b50\u8fdb\u7a0b\u3002\u5982\u679c fork() \u8fd4\u56de 0&#xff0c;\u5219\u662f\u5b50\u8fdb\u7a0b&#xff1b;\u5982\u679c\u8fd4\u56de\u4e00\u4e2a\u6b63\u6570&#xff0c;\u5219\u662f\u7236\u8fdb\u7a0b&#xff0c;\u5e76\u4e14\u8fd4\u56de\u503c\u662f\u5b50\u8fdb\u7a0b\u7684 PID\u3002<\/li>\n<li>\u7236\u8fdb\u7a0b\u4f7f\u7528 kill() \u5411\u5b50\u8fdb\u7a0b\u53d1\u9001\u4fe1\u53f7&#xff0c;\u5b50\u8fdb\u7a0b\u5219\u4f7f\u7528 pause() \u6765\u7b49\u5f85\u5e76\u5904\u7406\u63a5\u6536\u5230\u7684\u4fe1\u53f7\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u5b50\u8fdb\u7a0b\u9000\u51fa&#xff1a;<\/p>\n<ul>\n<li>\u5b50\u8fdb\u7a0b\u5728\u63a5\u6536\u5230\u7b2c 5 \u6b21 SIGUSR2 \u4fe1\u53f7\u65f6&#xff0c;\u4f1a\u8f93\u51fa \u201cReceived 5 signals, child exit!\u201d \u5e76\u8c03\u7528 exit(0) \u9000\u51fa\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7236\u8fdb\u7a0b\u7b49\u5f85&#xff1a;<\/p>\n<ul>\n<li>\u7236\u8fdb\u7a0b\u901a\u8fc7 waitpid(pid, &amp;status, 0) \u7b49\u5f85\u5b50\u8fdb\u7a0b\u7ed3\u675f\u3002\u5b50\u8fdb\u7a0b\u7ed3\u675f\u540e&#xff0c;\u7236\u8fdb\u7a0b\u4f1a\u8f93\u51fa \u201cChild terminated.\u201d \u5e76\u9000\u51fa\u3002<\/li>\n<\/ul>\n<\/li>\n<h3>3\u3001\u7f16\u8bd1\u548c\u8fd0\u884c<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250426185214-680d2b5e86b3a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<ul>\n<li>\u6bcf\u9694 2 \u79d2&#xff0c;\u7236\u8fdb\u7a0b\u4f1a\u53d1\u9001\u4e00\u6b21 SIGUSR2 \u4fe1\u53f7\u7ed9\u5b50\u8fdb\u7a0b\u3002<\/li>\n<li>\u5b50\u8fdb\u7a0b\u6536\u5230 5 \u6b21\u4fe1\u53f7\u540e\u8f93\u51fa\u201cReceived 5 signals, child exit!\u201d\u5e76\u9000\u51fa\u3002<\/li>\n<li>\u7236\u8fdb\u7a0b\u7b49\u5f85\u5b50\u8fdb\u7a0b\u9000\u51fa\u540e\u8f93\u51fa\u201cChild terminated.\u201d\u5e76\u7ed3\u675f\u3002<\/li>\n<\/ul>\n<h3>5\u3001Gitee\u4ed3\u5e93<\/h3>\n<p>\u4ed3\u5e93\u94fe\u63a5&#xff1a;https:\/\/gitee.com\/li-zhen1215\/homework\/tree\/master\/Week8\/keshang3<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250426185214-680d2b5eb2ccc.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb452\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u4ed3\u5e93\u94fe\u63a5\uff1ahttps:\/\/gitee.com\/li-zhen1215\/homework\/tree\/master\/Week8\/keshang3\u3002<\/p>\n","protected":false},"author":2,"featured_media":33184,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2710],"topic":[],"class_list":["post-33186","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-2710"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406 - \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\/33186.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb452\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u4ed3\u5e93\u94fe\u63a5\uff1ahttps:\/\/gitee.com\/li-zhen1215\/homework\/tree\/master\/Week8\/keshang3\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/33186.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-26T18:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250426185214-680d2b5e86b3a.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=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33186.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/33186.html\",\"name\":\"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-26T18:52:15+00:00\",\"dateModified\":\"2025-04-26T18:52:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/33186.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/33186.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/33186.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406\"}]},{\"@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":"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406 - \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\/33186.html","og_locale":"zh_CN","og_type":"article","og_title":"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb452\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf7\u6b21\u3002\u4ed3\u5e93\u94fe\u63a5\uff1ahttps:\/\/gitee.com\/li-zhen1215\/homework\/tree\/master\/Week8\/keshang3\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/33186.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-26T18:52:15+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/04\/20250426185214-680d2b5e86b3a.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/33186.html","url":"https:\/\/www.wsisp.com\/helps\/33186.html","name":"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-26T18:52:15+00:00","dateModified":"2025-04-26T18:52:15+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/33186.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/33186.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/33186.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"20242817-\u674e\u81fb-\u8bfe\u4e0a\u6d4b\u8bd5\uff1a\u4fe1\u53f7\u5904\u7406"}]},{"@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\/33186","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=33186"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/33186\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/33184"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=33186"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=33186"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=33186"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=33186"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}