{"id":326,"date":"2023-10-14T08:41:30","date_gmt":"2023-10-14T00:41:30","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=326"},"modified":"2025-03-19T13:06:34","modified_gmt":"2025-03-19T05:06:34","slug":"%e6%9d%a1%e4%bb%b6%e8%a1%a8%e8%be%be%e5%bc%8f%e8%af%ad%e5%8f%a5","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e6%9d%a1%e4%bb%b6%e8%a1%a8%e8%be%be%e5%bc%8f%e8%af%ad%e5%8f%a5\/","title":{"rendered":"\u6761\u4ef6\u8868\u8fbe\u5f0f?:\u8bed\u53e5"},"content":{"rendered":"\n<p>  a ? b : c\u662fif (a) b else c\u7684\u7f29\u51cf\u7248\u3002\u6761\u4ef6\u8fd0\u7b97\u7b26\u9700\u89813\u4e2a\u64cd\u4f5c\u6570\uff0c\u662f\u4e09\u5143\u8fd0\u7b97\u7b26\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e0d\u540c\u6761\u4ef6\u8868\u8fbe\u5f0f\u7684\u5f62\u6001<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5927\u90e8\u5206\u57fa\u4e8eC\u7684\u7f16\u7a0b\u8bed\u8a00\u90fd\u652f\u6301\u6761\u4ef6\u8868\u8fbe\u5f0f\u3002C\/ObjC\/C++\/Java\/C#\/PHP \u7b49\u90fd\u652f\u6301 a ? b : c\u7684\u5f62\u6001\u3002<\/li>\n\n\n\n<li>Haskell\u4e5f\u652f\u6301\u6761\u4ef6\u8868\u8fbe\u5f0f\uff0c\u5f62\u5f0f\u6709\u6240\u4e0d\u540c\uff0c\u4f7f\u7528if-then-else\u8bed\u53e5\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u6761\u4ef6\u8868\u8fbe\u5f0f\u8fd4\u56de\u4e0d\u540c\u7c7b\u578b<\/h2>\n\n\n\n<p>  a ? b : c\u5982\u679cb\u548cc\u7684\u7c7b\u578b\u4e0d\u540c\uff0c\u5c06\u5982\u4f55\u8fd4\u56de\uff1f\u9ed8\u8ba4\u6839\u636ea\u7684\u7c7b\u578b\uff0c\u8fd4\u56deb\u548cc\u8f83\u5927\u7684\u7c7b\u578b\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C# \u5176\u5b9e\u4e5f\u5141\u8bb8b\u548cc\u7684\u7c7b\u578b\u4e0d\u540c\uff0c\u53ea\u4e0d\u8fc7\u5b83\u4eec\u7c7b\u578b\u5fc5\u987b\u80fd\u517c\u5bb9a\u7684\u7c7b\u578b\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u7ed3\u5408\u6027<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u6761\u4ef6\u8868\u8fbe\u5f0f\u662f\u53f3\u7ed3\u5408\uff0c? \u603b\u4e0e\u53f3\u4fa7\u6700\u8fd1\u7684 : \u5339\u914d\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>a ? b : c\u662fif (a) b else c\u7684\u7f29\u51cf\u7248\u3002\u6761\u4ef6\u8fd0\u7b97\u7b26\u9700\u89813\u4e2a\u64cd\u4f5c\u6570\uff0c\u662f\u4e09\u5143\u8fd0\u7b97\u7b26\u3002 \u4e0d\u540c\u6761\u4ef6\u8868\u8fbe\u5f0f\u7684\u5f62\u6001 \u6761\u4ef6\u8868\u8fbe\u5f0f\u8fd4\u56de\u4e0d\u540c\u7c7b\u578b a ? b : c\u5982\u679cb\u548cc\u7684\u7c7b\u578b\u4e0d\u540c\uff0c\u5c06\u5982\u4f55\u8fd4\u56de\uff1f&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[116,8,98],"tags":[117,9,99],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-116","category-8","category-98","tag-117","tag-9","tag-99"],"views":41,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":7,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"predecessor-version":[{"id":4001,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/326\/revisions\/4001"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}