{"id":293,"date":"2025-03-08T12:56:31","date_gmt":"2025-03-08T04:56:31","guid":{"rendered":"https:\/\/yizero.top\/?p=293"},"modified":"2025-07-17T10:07:15","modified_gmt":"2025-07-17T02:07:15","slug":"set-a-flag","status":"publish","type":"post","link":"https:\/\/yizero.top\/index.php\/2025\/03\/08\/set-a-flag\/","title":{"rendered":"\u7acb\u4e2aflag\uff01"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u5728\u535a\u5ba2\u7acb\u4e2aflag\uff0c\u73b0\u5728\u6b63\u5728\u5b66\u4e60C#\uff0c\u5728\u5b66\u4f1aC#\u540e\u4f1a\u5c06\u4e4b\u524d\u5199\u7684\u4e00\u4e9b\u8f6f\u4ef6\u7528C#\u91cd\u5199\uff0c\u5f7b\u5e95\u8f6f\u4ef6\u89e3\u51b3\u8bef\u62a5\uff0c\u8f6f\u4ef6\u4f53\u79ef\u5927\u7684\u95ee\u9898\u3002\u6240\u4ee5\u540e\u9762\u535a\u5ba2\u8f6f\u4ef6\u7684\u66f4\u65b0\u9891\u7387\u53ef\u80fd\u4f1a\u964d\u4f4e\uff0c\u4f46\u5e94\u8be5\u4e0d\u4f1a\u957f\u65f6\u95f4\u505c\u6b62\uff0c\u540e\u9762\u4e5f\u53ef\u80fd\u4f1a\u5c06C#\u5199\u7684\u7ec3\u624b\u8f6f\u4ef6\u7ed9\u53d1\u5e03\u5728\u535a\u5ba2(\u53ef\u80fd\u6ca1\u5565\u7528\uff0c\u8bb0\u5f55\u6210\u957f\u5427)\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5176\u4ed6\u4fe1\u606f\uff1a<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.\u5c0f\u65b0\u5de5\u5177\u7bb1\u5728\u589e\u52a0log\u529f\u80fd\uff0c\u907f\u514d\u5728\u8f6f\u4ef6\u5d29\u6e83\u540e\u5374\u4e0d\u77e5\u9053\u5982\u4f55\u5bfc\u81f4\u7684\u5d29\u6e83\uff0clog\u5177\u4f53\u4f1a\u8bb0\u5f55\u7528\u6237\u5728\u8f6f\u4ef6\u5185\u7684\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.\u5c0f\u65b0\u5de5\u5177\u7bb1\u540e\u7eed\u53ef\u80fd\u4f1a\u589e\u52a0\u5e38\u7528\u8f6f\u4ef6\u7684\u4e0b\u8f7d\uff0c\u5982QQ\uff0c\u5fae\u4fe1\u7b49\u7b49\u3002\u3002\u3002\u65b9\u4fbf\u5728\u91cd\u88c5\u7cfb\u7edf\u540e\u5feb\u901f\u4e0b\u8f7d\u5b89\u88c5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728\u535a\u5ba2\u7acb\u4e2aflag\uff0c\u73b0\u5728\u6b63\u5728\u5b66\u4e60C#\uff0c\u5728\u5b66\u4f1aC#\u540e\u4f1a\u5c06\u4e4b\u524d\u5199\u7684\u4e00\u4e9b\u8f6f\u4ef6\u7528C#\u91cd\u5199\uff0c\u5f7b\u5e95\u8f6f\u4ef6\u89e3\u51b3\u8bef\u62a5\uff0c\u8f6f\u4ef6\u4f53\u79ef\u5927 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,29],"tags":[],"class_list":["post-293","post","type-post","status-publish","format-standard","hentry","category-essay","category-moving"],"_links":{"self":[{"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/posts\/293","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/comments?post=293"}],"version-history":[{"count":5,"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/posts\/293\/revisions"}],"predecessor-version":[{"id":298,"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/posts\/293\/revisions\/298"}],"wp:attachment":[{"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/media?parent=293"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/categories?post=293"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/yizero.top\/index.php\/wp-json\/wp\/v2\/tags?post=293"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}