{"id":303,"date":"2023-10-13T08:14:16","date_gmt":"2023-10-13T00:14:16","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=303"},"modified":"2025-03-08T17:32:28","modified_gmt":"2025-03-08T09:32:28","slug":"%e5%85%b3%e7%b3%bb%e8%bf%90%e7%ae%97%e7%ac%a6","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e5%85%b3%e7%b3%bb%e8%bf%90%e7%ae%97%e7%ac%a6\/","title":{"rendered":"\u5173\u7cfb\u8fd0\u7b97\u7b26"},"content":{"rendered":"\n<p>  \u5224\u65ad\u76f8\u7b49\u6216\u8005\u4e0d\u7b49\u7684\u8fd0\u7b97\u7b26\uff0c\u4e00\u822c\u88ab\u79f0\u4e3a\u5173\u7cfb\u8fd0\u7b97\u7b26\u6216\u8005\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u76f8\u7b49\u548c\u4e0d\u76f8\u7b49<\/h2>\n\n\n\n<p>  \u5b9a\u4e49\u57fa\u672c\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff1a&lt; &gt; == &gt;= &lt;= !=<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\/ObjC\/C++\/Java\/C#\/PHP\/Kotlin\/Python\/\u4ed3\u9889 \u7b49\u5747\u652f\u6301\u57fa\u672c\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002\u5b83\u4eec\u4f7f\u7528\"==\"\u8868\u793a\u76f8\u7b49\uff0c\"=\"\u8868\u793a\u8d4b\u503c\uff0c\"!=\"\u4ee3\u8868\u4e0d\u76f8\u7b49\u3002\n<ul class=\"wp-block-list\">\n<li>C\/C++\u6761\u4ef6\u8bed\u53e5\u53ef\u4ee5\u6df7\u7528\u8d4b\u503c\u548c\u76f8\u7b49\u8fd0\u7b97\u7b26\uff0c\u56e0\u4e3a\u652f\u6301\u8d4b\u503c\u8fd0\u7b97\u7b26\u8fd4\u56de\u6574\u6570\u5e76\u4f5c\u4e3a\u5224\u65ad\u6761\u4ef6\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>VB \u7279\u6b8a\u5728\u7528\"=\"\u5224\u65ad\u76f8\u7b49\uff0c\"&lt;&gt;\"\u6216\"&gt;&lt;\"\u4ee3\u8868\u4e0d\u76f8\u7b49\u3002<\/li>\n\n\n\n<li>JS\u4e2d\u201c=\u201d\u662f\u8d4b\u503c\uff0c\"==\"\u5224\u65ad\u76f8\u7b49\uff0c\u5bbd\u677e\u6bd4\u8f83\uff0c\"===\"\u662f\u4e25\u683c\u6bd4\u8f83\u76f8\u7b49\u3002\n<ul class=\"wp-block-list\">\n<li>\u6bd4\u59821 == \"1\"\u6210\u7acb\uff0c\u4f461  === \"1\"\u4e0d\u6210\u7acb\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>SQL\u548cVB\u7c7b\u4f3c\uff0c\u7528\"=\"\u8868\u793a\u76f8\u7b49\uff0c\"&lt;&gt;\"\u8868\u793a\u4e0d\u76f8\u7b49\u3002\u201c=\u201c\u4e5f\u7528\u4e8e\u8d4b\u503c\uff0c\u6839\u636e\u573a\u666f\u533a\u5206\u5f00\uff0c\u4e0d\u4f1a\u6df7\u6dc6\u3002\u6bd4\u5982set @variable = &lt;value&gt;\u8868\u793a\u8d4b\u503c\uff0c\u5728where\u5b50\u53e5\u4e2d\"=\"\u662f\u6bd4\u8f83\u3002\n<ul class=\"wp-block-list\">\n<li>SQL\u4e3a\u4e86\u66f4\u597d\u652f\u6301\u67e5\u8be2\uff0c\u589e\u52a0\u4e86BETWEEN\/LIKE\/IN, \u5206\u522b\u8868\u793a\u5728\u67d0\u4e2a\u8303\u56f4\uff0c\u7c7b\u4f3c\u548c\u5728\u786e\u5b9a\u8303\u56f4\u5185\u3002\u5176\u4ed6\u7f16\u7a0b\u8bed\u8a00\u4e0d\u4f1a\u6709\u6b64\u529f\u80fd\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Fortran \u6709\u4e24\u5957\u8fd0\u7b97\u7b26\u8868\u8fbe\u5173\u7cfb\u8fd0\u7b97\u7b26\uff0c== \/= &gt; &gt;= &lt; &lt;=\u548c.eq. .ne. .gt. .lt. .ge. .le.<\/li>\n\n\n\n<li>PHP \u989d\u5916\u652f\u6301\u6052\u7b49===\u548c\u975e\u6052\u7b49!==\u8fd0\u7b97\u7b26\uff0c===\u610f\u5473\u7740\u4e0d\u4ec5\u6570\u503c\u76f8\u540c\uff0c\u7c7b\u578b\u4e5f\u76f8\u540c\u3002!==\u8868\u793a\u6570\u503c\u548c\u7c7b\u578b\u81f3\u5c11\u4e00\u4e2a\u4e0d\u540c\u3002\n<ul class=\"wp-block-list\">\n<li>\u4f8b\u5982 \"100\" == 100 \u8fd4\u56detrue, \u4f46 \"100\" === 100 \u662ffalse.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>Pascal \u7528 = \u4ee3\u8868\u7b49\u4e8e\uff0c&lt;&gt; \u4ee3\u8868\u4e0d\u7b49\u4e8e\u3002<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u4f18\u5148\u7ea7<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li>&lt; &gt; == &gt;= \u4f18\u5148\u7ea7\u9ad8\u4e8e == \u548c !=.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5224\u65ad\u76f8\u7b49\u6216\u8005\u4e0d\u7b49\u7684\u8fd0\u7b97\u7b26\uff0c\u4e00\u822c\u88ab\u79f0\u4e3a\u5173\u7cfb\u8fd0\u7b97\u7b26\u6216\u8005\u6bd4\u8f83\u8fd0\u7b97\u7b26\u3002 \u76f8\u7b49\u548c\u4e0d\u76f8\u7b49 \u5b9a\u4e49\u57fa\u672c\u6bd4\u8f83\u8fd0\u7b97\u7b26\uff1a&lt; &gt; == &gt;= &lt;= != \u4f18\u5148\u7ea7<\/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-303","post","type-post","status-publish","format-standard","hentry","category-think"],"views":126,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/303","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=303"}],"version-history":[{"count":13,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/303\/revisions"}],"predecessor-version":[{"id":3888,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/303\/revisions\/3888"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}