{"id":3530,"date":"2025-01-05T15:52:18","date_gmt":"2025-01-05T07:52:18","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=3530"},"modified":"2025-02-07T13:49:25","modified_gmt":"2025-02-07T05:49:25","slug":"%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%92%8c%e6%95%b4%e6%95%b0%e6%af%94%e8%be%83","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e5%ad%97%e7%ac%a6%e4%b8%b2%e5%92%8c%e6%95%b4%e6%95%b0%e6%af%94%e8%be%83\/","title":{"rendered":"\u5b57\u7b26\u4e32\u548c\u6574\u6570\u6bd4\u8f83"},"content":{"rendered":"\n<p>  \u5c3d\u7ba1\u66f4\u5b89\u5168\u7684\u7f16\u7a0b\u8bed\u8a00\u503e\u5411\u4e8e\u963b\u6b62\u5b57\u7b26\u4e32\u548c\u6574\u6570\u6bd4\u8f83\uff0c\u4ecd\u7136\u6709\u8bed\u8a00\u5e0c\u671b\u8ba9\u5b83\"\u5408\u6cd5\".<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\/ObjC \u8bed\u8a00\u5141\u8bb8\u5b57\u7b26\u4e32\u548c\u6574\u6570\u6bd4\u8f83\u5927\u5c0f\uff0c\u7f16\u8bd1\u5668\u867d\u7136\u4f1a\u63d0\u793a\u8b66\u544a\uff0c\u4f9d\u7136\u6539\u53d8\u4e0d\u4e86\u7f16\u8bd1\u5668\u8ba4\u4e3a\u5b57\u7b26\u4e32\u5730\u5740\u4e5f\u662f\u4e00\u4e2a\u6570\u503c\uff0c\u662f\u53ef\u4ee5\u548c\u6574\u6570\u6bd4\u8f83\u5927\u5c0f\u7684\u8bed\u8a00\u8bbe\u8ba1\u539f\u5219\u3002\n<ul class=\"wp-block-list\">\n<li>warning: comparison between pointer and integer<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>C++ \u548cC\u8bed\u8a00\u4e0d\u540c\uff0c\u4e0d\u5141\u8bb8char *\u5b57\u7b26\u4e32\u548c\u6574\u6570\u6bd4\u8f83\u5927\u5c0f\uff1a<br>error: ISO C++ forbids comparison between pointer and integer<br>\u4e5f\u4e0d\u5141\u8bb8string\u7c7b\u578b\u548c\u6574\u6570\u6bd4\u8f83\u5927\u5c0f\uff0c\u4f1a\u6709\u5982\u4e0b\u9519\u8bef\uff1a<br>error: no match for 'operator>' (operand types are 'std::string' {aka 'std::basic_string&lt;char>'} and 'int')<\/li>\n\n\n\n<li>Python \u4e0d\u5141\u8bb8\u5b57\u7b26\u4e32\u548c\u6574\u6570\u6bd4\u8f83\u5927\u5c0f\u6216\u7b97\u672f\u8fd0\u7b97\uff1a<br>TypeError: '<strong><em>xxx<\/em><\/strong>' not supported between instances of 'str' and 'int'\n<ul class=\"wp-block-list\">\n<li>age = 21 \u4ee3\u8868age\u662f\u6574\u6570\uff0cage = \"21\"\u4ee3\u8868age\u662f\u5b57\u7b26\u4e32<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c3d\u7ba1\u66f4\u5b89\u5168\u7684\u7f16\u7a0b\u8bed\u8a00\u503e\u5411\u4e8e\u963b\u6b62\u5b57\u7b26\u4e32\u548c\u6574\u6570\u6bd4\u8f83\uff0c\u4ecd\u7136\u6709\u8bed\u8a00\u5e0c\u671b\u8ba9\u5b83\"\u5408\u6cd5\".<\/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-3530","post","type-post","status-publish","format-standard","hentry","category-think"],"views":108,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/3530","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=3530"}],"version-history":[{"count":4,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/3530\/revisions"}],"predecessor-version":[{"id":3609,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/3530\/revisions\/3609"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=3530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=3530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=3530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}