{"id":2298,"date":"2024-06-29T11:21:35","date_gmt":"2024-06-29T03:21:35","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=2298"},"modified":"2024-10-25T20:43:31","modified_gmt":"2024-10-25T12:43:31","slug":"%e5%93%aa%e4%ba%9b%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%e6%94%af%e6%8c%81%e6%95%b0%e5%80%bc%e4%b8%ad%e6%8f%92%e5%85%a5%e4%b8%8b%e5%88%92%e7%ba%bf_%e6%9b%b4%e5%ae%b9%e6%98%93%e7%9c%8b","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e5%93%aa%e4%ba%9b%e7%bc%96%e7%a8%8b%e8%af%ad%e8%a8%80%e6%94%af%e6%8c%81%e6%95%b0%e5%80%bc%e4%b8%ad%e6%8f%92%e5%85%a5%e4%b8%8b%e5%88%92%e7%ba%bf_%e6%9b%b4%e5%ae%b9%e6%98%93%e7%9c%8b\/","title":{"rendered":"\u54ea\u4e9b\u7f16\u7a0b\u8bed\u8a00\u652f\u6301\u6570\u503c\u4e2d\u63d2\u5165\u5206\u9694\u7b26\u66f4\u5bb9\u6613\u770b\u6e05\u695a?"},"content":{"rendered":"\n<p>  \u9664\u4e86C\/ObjC\u4e0d\u652f\u6301\uff0cC++\/Java\/C#\/JS\/Swift\/VB.NET\/Rust\/Go\/Python 3.6\/\u4ed3\u9889 \u7b49\u8bed\u8a00\u5747\u652f\u6301\uff0c\u5206\u9694\u7b26\u4e00\u822c\u9009\u62e9\u662f\u4e0b\u5212\u7ebf_, \u4e5f\u6709\u9009\u62e9\u7528\u5355\u5f15\u53f7\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>C++<\/strong>\uff1aC++14\u6807\u51c6\u5f15\u5165\u4e86\u5bf9\u6570\u5b57\u5b57\u9762\u91cf\u4e2d\u4f7f\u7528\u5355\u5f15\u53f7'\u505a\u5206\u9694\u652f\u6301\u3002<br>\u5f53\u7136\uff0c\u7528-std=c++11\u4f1a\u51fa\u73b0build\u9519\u8bef\u3002<\/li>\n\n\n\n<li><strong>C#<\/strong>\uff1a\u4eceC# 7.0\u5f00\u59cb\uff0c\u53ef\u4ee5\u4f7f\u7528\u4e0b\u5212\u7ebf\u5728\u6570\u5b57\u5b57\u9762\u91cf\u4e2d\u589e\u52a0\u53ef\u8bfb\u6027\u3002<br>\u53ef\u901a\u8fc7\u7f16\u8bd1\u9009\u9879\/langversion:6.0\u786e\u8ba4\u6b64\u529f\u80fd\u57287.0\u4ee5\u4e0a\u624d\u4f1a\u652f\u6301\uff1aerror CS8059: \u529f\u80fd\u201c\u6570\u5b57\u5206\u9694\u7b26\u201d\u5728 C# 6 \u4e2d\u4e0d\u53ef\u7528\uff0c\u8bf7\u4f7f\u7528 7.0 \u6216\u66f4\u9ad8\u7684\u8bed\u8a00\u7248\u672c\u3002<br>C# 7.2\u5f00\u59cb\u652f\u6301\u5341\u516d\u8fdb\u5236\u6570\u503c\u548c\u4e8c\u8fdb\u5236\u6570\u503c(0x\u5f00\u5934\u548c0b\u5f00\u5934)\u57280x\u548c0b\u540e\u9762\u63d2\u5165\u4e0b\u5212\u7ebf\u3002<\/li>\n\n\n\n<li><strong>Java<\/strong>\uff1a\u4eceJava 7\u5f00\u59cb\uff0cJava\u652f\u6301\u5728\u6570\u5b57\u5b57\u9762\u91cf\u4e2d\u4f7f\u7528\u4e0b\u5212\u7ebf\u3002<br>\u53cd\u5411\u9a8c\u8bc1\uff0c\u53ef\u901a\u8fc7&nbsp;-target 1.6 -source 1.6\u9009\u9879\u786e\u8ba4\u6570\u5b57\u5b57\u9762\u91cf\u5b58\u5728\u4e0b\u5212\u7ebf\u6709\u7f16\u8bd1\u9519\u8bef\u3002<\/li>\n\n\n\n<li>JavaScript \u4ece ES2021 \u7248\u672c\u5f00\u59cb\u652f\u6301\u5728\u6570\u503c\u5b57\u9762\u91cf\u4e2d\u4f7f\u7528\u4e0b\u5212\u7ebf\u4f5c\u4e3a\u5206\u9694\u7b26\u3002<\/li>\n\n\n\n<li>VB.NET\u4e4b\u524d\u4e0d\u652f\u6301\uff0cVB.NET\u6700\u65b0\u7248\u5df2\u7ecf\u652f\u6301\u6570\u503c\u4e2d\u7528\u4e0b\u5212\u7ebf\u5206\u9694\u3002\u4f8b\u5982\uff1a<br>Dim a as Integer = 1_000<\/li>\n\n\n\n<li>Rust\/Swift\/Go\u8bed\u8a00\u90fd\u652f\u6301\u6570\u503c\u4e2d\u7528\u4e0b\u5212\u7ebf\u5206\u9694\u3002<\/li>\n\n\n\n<li>Python 3.6\u5f00\u59cb\u4e5f\u652f\u6301\u6570\u503c\u7528\u4e0b\u5212\u7ebf\u5206\u9694\uff0c\u5177\u4f53\u53c2\u8003\uff1a<a href=\"https:\/\/peps.python.org\/pep-0515\/\">PEP 515 \u2013 Underscores in Numeric Literals<\/a>.<\/li>\n\n\n\n<li>\u4ed3\u9889 \u652f\u6301\u7528\u4e0b\u5212\u7ebf\u5728\u6570\u503c\u5b57\u9762\u91cf\u4e2d\uff0c\u4e0d\u8bba\u662f\u6574\u578b\u8fd8\u662f\u6d6e\u70b9\u578b\u3002<br>\u4f8b\u59821_23\u4ee3\u8868123\uff0c1.2_3\u4ee3\u88681.23.<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e0b\u5212\u7ebf\u5206\u9694\u7b26<\/h3>\n\n\n\n<p>  \u4f60\u53ef\u80fd\u4f1a\u56f0\u60d1\uff0cC#\u4e5f\u5141\u8bb8\u6570\u503c\u4e2d\u6709\u591a\u4e2a\u8fde\u7eed\u7684\u4e0b\u5212\u7ebf\uff0c\u5176\u5b9e\u672c\u8d28\u4e0a\uff0c\u7f16\u8bd1\u5668\u5728\u89e3\u6790\u6570\u503c\u5b57\u9762\u91cf\u76f4\u63a5\u5ffd\u7565\u4e0b\u5212\u7ebf\uff0c\u6240\u4ee5\u591a\u4e2a\u8fde\u7eed\u4e0b\u5212\u7ebf\u4e0d\u5f71\u54cd\u89e3\u6790\uff0c\u4f8b\u5982 1__200.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u9700\u8981\u6ce8\u610f\uff0c\u4e0b\u5212\u7ebf\u4e0d\u80fd\u5728\u5b57\u9762\u91cf\u5f00\u5934\u6216\u8005\u7ed3\u5c3e\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9664\u4e86C\/ObjC\u4e0d\u652f\u6301\uff0cC++\/Java\/C#\/JS\/Swift\/VB.NET\/Rust\/Go\/Python 3.6\/\u4ed3\u9889 \u7b49\u8bed\u8a00\u5747\u652f\u6301\uff0c\u5206\u9694\u7b26\u4e00\u822c\u9009\u62e9\u662f\u4e0b\u5212\u7ebf_, \u4e5f\u6709\u9009\u62e9\u7528\u5355\u5f15\u53f7\u3002 \u4e0b\u5212\u7ebf\u5206\u9694\u7b26 &#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":[299],"tags":[],"class_list":["post-2298","post","type-post","status-publish","format-standard","hentry","category-think"],"views":92,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2298","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=2298"}],"version-history":[{"count":7,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2298\/revisions"}],"predecessor-version":[{"id":3155,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/2298\/revisions\/3155"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=2298"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=2298"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=2298"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}