{"id":274,"date":"2023-10-12T08:04:55","date_gmt":"2023-10-12T00:04:55","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=274"},"modified":"2025-03-01T07:48:58","modified_gmt":"2025-02-28T23:48:58","slug":"%e8%b5%8b%e5%80%bc%e8%bf%90%e7%ae%97%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e8%b5%8b%e5%80%bc%e8%bf%90%e7%ae%97%e7%ac%a6\/","title":{"rendered":"\u8d4b\u503c\u8fd0\u7b97\u7b26"},"content":{"rendered":"\n<p>  \u8d4b\u503c\u662f\u7f16\u7a0b\u8bed\u8a00\u57fa\u672c\u64cd\u4f5c\uff0c\u5373\u4fbf\u5982\u6b64\uff0c\u8d4b\u503c\u8fd0\u7b97\u7b26\u4e5f\u5e76\u4e0d\u552f\u4e00\u3002\u5927\u90e8\u5206\u7f16\u7a0b\u8bed\u8a00\"=\"\u662f\u8d4b\u503c\uff0c\"==\"\u662f\u76f8\u7b49\u3002\u4e00\u4e2a\u5e38\u89c1\u7684\u7591\u95ee\u662f\uff0c\u8d4b\u503c\u8fd0\u7b97\u7b26\"=\"\u548c\u6570\u5b66\u7684\u76f8\u7b49\u662f\u4e00\u4e2a\u7b26\u53f7\uff0c\u8fd9\u4f1a\u4ea7\u751f\u8bef\u89e3\u5417\uff1f<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">=\u548c==<\/h3>\n\n\n\n<p>  \u5728\u6570\u5b66\u6216\u8005\u8ba1\u7b97\u673a\u79d1\u5b66\u4e2d\uff0c\u5224\u65ad\u76f8\u7b49\u76f8\u6bd4\u4e8e\u8d4b\u503c\uff0c\u4e2a\u6570\u5c11\u7684\u53ef\u601c\u3002\u6309\u7167\u7f16\u7801\u7406\u8bba\uff0c\u51fa\u73b0\u6b21\u6570\u8d8a\u591a\u7684\u7b26\u53f7\u7528\u6700\u5c11\u7684\u5b57\u7b26\u7f16\u7801\u66f4\u6709\u5229\u3002\u7528\"=\"\u5f53\u505a\u8d4b\u503c\uff0c\"==\"\u76f8\u7b49\u4e5f\u662f\u6709\u9053\u7406\u7684\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\/C++\u53ef\u80fd\u8bef\u7528\u8d4b\u503c\u4e3a\u903b\u8f91\u5224\u7b49\uff0c\u4f46\u7f16\u8bd1\u5668\u53ef\u80fd\u4e0d\u4f1a\u7406\u4f1a\uff0c\u56e0\u4e3a\u8d4b\u503c\u7684\u7ed3\u679c\u4e3a\u6574\u578b\u4f9d\u7136\u88ab\u5f53\u505a\u5408\u6cd5\u7684\u903b\u8f91\u503c\u3002\u8fd9\u5f88\u7075\u6d3b\uff0c\u5b57\u7b26\u4e32\u7ed3\u5c3e\u5224\u65ad\u4ee3\u7801\u76f8\u5f53\u7b80\u6d01\uff0c\u4f46\u53ef\u80fd\u88ab\u8bef\u7528\u3002<\/li>\n\n\n\n<li>Java\u4f5c\u4e3a\u4e00\u95e8\u5b89\u5168\u8bbe\u8ba1\u7684\u8bed\u8a00\uff0c\u53ef\u80fd\u7684\u8bef\u7528\uff0c\u7f16\u8bd1\u5668\u4f1a\u76f4\u63a5\u62a5\u8b66\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e0d\u540c\u7684\u8d4b\u503c\u8fd0\u7b97\u7b26<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u5927\u90e8\u5206\u4e3b\u6d41\u8bed\u8a00\u652f\u6301\u201d=\u201d\u4f5c\u4e3a\u8d4b\u503c\uff0c\u4e5f\u652f\u6301\u590d\u5408\u8d4b\u503c\u8fd0\u7b97\u7b26(\u5982+=, -=, *=, \/=, %=)\n<ul class=\"wp-block-list\">\n<li>C\/ObjC\/C++\/Python\/C#\/Java\/JavaScript\/Ruby\/Swift\/\u4ed3\u9889\/Go\/Rust\/VB.NET\/PHP\/Kotlin \u7b49\u5747\u652f\u6301\u3002<\/li>\n\n\n\n<li>Shell\/Batch\u6279\u5904\u7406\/VB6 \u652f\u6301\"=\"\u8d4b\u503c\uff0c\u4f46\u4e0d\u652f\u6301\u590d\u5408\u8d4b\u503c\u8fd0\u7b97\u7b26\u3002<\/li>\n\n\n\n<li>VB \u8d4b\u503c\u8bed\u53e5\u5f00\u5934\u53ef\u4ee5\u989d\u5916\u589e\u52a0 Let \u663e\u5f0f\u6307\u793a\u3002<\/li>\n\n\n\n<li>C#\u590d\u5408\u8d4b\u503c\u4e0eC\u8bed\u8a00\u6709\u5dee\u5f02\uff0c\u5b83\u662f\u8c03\u7528\u76f8\u5e94\u65b9\u6cd5\u5b9e\u73b0\uff1aa += b\u76f8\u5f53\u4e8ea = a.Add(b).<\/li>\n\n\n\n<li>PHP\u8fd8\u652f\u6301 \".=\" \u5b9e\u73b0\u5b57\u7b26\u4e32\u62fc\u63a5\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>\u53e6\u5916\u4e00\u79cd\u8d4b\u503c\u8fd0\u7b97\u7b26:=\uff0c\u6700\u65e9\u8d77\u6e90\u4e8eAlgol\u8bed\u8a00\uff0cGo\u8bed\u8a00\u4e5f\u4f7f\u7528\u8fd9\u79cd\u8d4b\u503c\u65b9\u5f0f\u505a\u51fd\u6570\u5185\u53d8\u91cf\u65e0\u9700\u58f0\u660e\u5feb\u901f\u8d4b\u503c\u3002Pascal\u548cAda\u90fd\u91c7\u7528:=\u4f5c\u4e3a\u8d4b\u503c\uff0c\u628a=\u5f53\u6210\u76f8\u7b49\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff0c\u8fd9\u4e0e\u4e0a\u9762\"==\"\u4f5c\u4e3a\u76f8\u7b49\u5224\u65ad\u4e0d\u540c\u3002<br><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u8d4b\u503c\u8fd0\u7b97\u7b26\u524d\u540e\u7684\u7a7a\u683c<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u7f16\u8bd1\u578b\u8bed\u8a00\u4e00\u822c\u53ef\u4ee5\u5ffd\u7565\u7a7a\u767d\u5b57\u7b26\uff0c\u4f1a\u5ffd\u7565\u8d4b\u503c\u8fd0\u7b97\u7b26\u5de6\u53f3\u7684\u7a7a\u683c\u3002<\/li>\n\n\n\n<li>Shell\u8bed\u8a00\u7528\u4e8e\u547d\u4ee4\u63a7\u5236\uff0c\u8d4b\u503c\u5de6\u53f3\u4e0d\u80fd\u968f\u4fbf\u52a0\u7a7a\u683c\u3002<br><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">\u8fde\u7eed\u8d4b\u503c<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u8bed\u8a00\u652f\u6301\u5f62\u5982 i = j = k = 0, \u7b80\u5316\u4e86\u591a\u4e2a\u53d8\u91cf\u521d\u59cb\u5316\u3002\u4e3b\u6d41\u7f16\u7a0b\u8bed\u8a00\u5747\u652f\u6301\uff0c\u5982C\/ObjC\/C++\/Java\/C#\/Python\/Ruby\u7b49\u3002<\/li>\n\n\n\n<li>Pascal \u4e0d\u652f\u6301\u8fde\u7eed\u8d4b\u503c\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u8d4b\u503c\u548c\u76f8\u7b49\u6bd4\u8f83\u7684\u8bef\u7528<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\/ObjC\/C++ <br>if (x = 1) \u53ef\u80fd\u4e0d\u662f\u9884\u671f\uff0c\u4f46GCC\/G++\u9ed8\u8ba4\u4e0d\u62a5\u8b66\uff0c\u6253\u5f00-Wall\u540e\u63d0\u793a\uff1a<br>\"\u5efa\u8bae\u5728\u7528\u4f5c\u771f\u503c\u7684\u8d4b\u503c\u8bed\u53e5\u524d\u540e\u52a0\u4e0a\u62ec\u53f7 [-Wparentheses]\"<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4e00\u4e9b\u53e4\u8001\u7684\u590d\u5408\u8d4b\u503c\u8fd0\u7b97\u7b26<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u8bed\u8a00\u65e9\u671f\uff0c\u66fe\u51fa\u73b0\u8fc7 =+ \u4ee3\u8868\u5f53\u4eca += \u52a0\u6cd5\u590d\u5408\u8d4b\u503c\u8fd0\u7b97\u7b26(=-\u4e5f\u7c7b\u4f3c)\u3002C\u6807\u51c6\u5df2\u7ecf\u5e9f\u5f03\u4e86\u8fd9\u79cd\u505a\u6cd5\u3002<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u8d4b\u503c\u662f\u7f16\u7a0b\u8bed\u8a00\u57fa\u672c\u64cd\u4f5c\uff0c\u5373\u4fbf\u5982\u6b64\uff0c\u8d4b\u503c\u8fd0\u7b97\u7b26\u4e5f\u5e76\u4e0d\u552f\u4e00\u3002\u5927\u90e8\u5206\u7f16\u7a0b\u8bed\u8a00\"=\"\u662f\u8d4b\u503c\uff0c\"==\"\u662f\u76f8\u7b49\u3002\u4e00\u4e2a\u5e38\u89c1\u7684\u7591\u95ee\u662f\uff0c\u8d4b\u503c\u8fd0\u7b97\u7b26\"=\"\u548c\u6570\u5b66\u7684\u76f8\u7b49\u662f\u4e00\u4e2a\u7b26\u53f7\uff0c\u8fd9\u4f1a\u4ea7\u751f\u8bef\u89e3\u5417\uff1f =\u548c== \u5728\u6570\u5b66\u6216\u8005\u8ba1\u7b97&#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":[8,104,20],"tags":[9,105,21],"class_list":["post-274","post","type-post","status-publish","format-standard","hentry","category-8","category-104","category-20","tag-9","tag-105","tag-21"],"views":109,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/274","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=274"}],"version-history":[{"count":10,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/274\/revisions"}],"predecessor-version":[{"id":3775,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/274\/revisions\/3775"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}