{"id":368,"date":"2023-10-15T12:11:29","date_gmt":"2023-10-15T04:11:29","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=368"},"modified":"2024-09-20T22:09:15","modified_gmt":"2024-09-20T14:09:15","slug":"%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e8%bf%94%e5%9b%9e%e5%80%bc","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/%e8%be%93%e5%85%a5%e8%be%93%e5%87%ba%e8%bf%94%e5%9b%9e%e5%80%bc\/","title":{"rendered":"\u8f93\u5165\u8f93\u51fa\u8fd4\u56de\u503c"},"content":{"rendered":"\n<p>  \u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u8f93\u5165\u8f93\u51fa\u51fd\u6570\u8fd4\u56de\u503c\u6ca1\u6709\u88ab\u7279\u522b\u5173\u6ce8\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8fd9\u4e9b\u8fd4\u56de\u503c\u683c\u5916\u6709\u7814\u7a76\u610f\u4e49\u3002<\/p>\n\n\n\n<p><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u8fd4\u56de\u503c\u7684\u4e0d\u540c\u5f62\u6001<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>C\u8bed\u8a00printf\u548cscanf\u8fd4\u56de\u503c\u5206\u522b\u4e3a\u8f93\u51fa\u5b57\u8282\u4e2a\u6570\u4ee5\u53ca\u6210\u529f\u8f93\u5165\u7684\u53d8\u91cf\u4e2a\u6570\u3002\n<ul class=\"wp-block-list\">\n<li>\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0cprintf\u8fd4\u56de\u4e2a\u6570\u5e76\u4e0d\u5173\u5fc3\uff0c\u53ef\u4ee5\u5728\u8c03\u7528\u51fd\u6570\u524d\u9762\u52a0(void)\u5f3a\u5236\u5ffd\u7565\u8fd4\u56de\u503c\u3002<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li>ObjC\u76f8\u6bd4C\u8bed\u8a00\uff0c\u8fd8\u53ef\u7528NSLog\u8f93\u51fa\uff0c\u8fd4\u56de\u503c\u662fvoid.<\/li>\n\n\n\n<li>C++ cout\/cin\u4e3a\u6d41\u5bf9\u8c61\uff0c\u91cd\u8f7d&lt;&lt;\u548c&gt;&gt;\u8fd0\u7b97\u7b26\uff0c\u4f9d\u7136\u8fd4\u56de\u6d41\u5bf9\u8c61\u5f15\u7528ostream &amp;\u6216istream &amp;, \u4ee5\u4fbf\u4e8e\u591a\u4e2a\u53d8\u91cf\u8f93\u51fa\u8f93\u5165\u3002\u5f53\u7136\uff0c\u6d41\u5bf9\u8c61\u63d0\u4f9b\u72b6\u6001\u5224\u65ad\u662f\u5426\u6709\u5f02\u5e38\u3002<\/li>\n\n\n\n<li>Java println\u8fd4\u56de\u503c\u4e3avoid, Scanner\u7684next*\u51fd\u6570\u8fd4\u56de\u5bf9\u5e94\u6570\u636e\u7c7b\u578b\uff0c\u5982\u679c\u6709\u9519\u8bef\uff0c\u4f1a\u629b\u51fa\u5f02\u5e38\uff0c\u5982InputMismatchException.<\/li>\n\n\n\n<li>C# Console\u7c7bRead\u8fd4\u56deint, \u5982\u6709\u5f02\u5e38\u629b\u51faIOException, \u5982\u8f93\u5165\u6d6e\u70b9\u6570\u989d\u5916\u9700\u8981double.Parse(), ReadLine\u8fd4\u56de\u5b57\u7b26\u4e32\uff0c\u548cRead\u4e00\u6837\u53ef\u80fd\u629b\u51fa\u5f02\u5e38\uff0c\u5f02\u5e38\u66f4\u591a\uff0c\u5982OutOfMemoryException\u7b49\u3002Write*\u7cfb\u5217\u51fd\u6570\u8fd4\u56de\u503c\u4e3avoid.<\/li>\n\n\n\n<li>Python print\u8fd4\u56de\u503c\u4e3aNone, input\u8fd4\u56de\u5b57\u7b26\u4e32\u7c7b\u578b\u3002<\/li>\n\n\n\n<li>Shell\u66f4\u63a5\u8fd1\u7528\u6237\uff0c\u8f93\u5165\u548c\u8f93\u51fa\u9ed8\u8ba4\u4f7f\u7528\u5185\u7f6e\u65b9\u6cd5\uff0cread\u548cecho\u53ef\u4ee5\u652f\u6301\u4e0d\u540c\u5c55\u793a\u5f62\u6001\uff0c\u540c\u65f6\u4e5f\u63d0\u4f9bprintf\u547d\u4ee4\uff0c\u548cC\u8bed\u8a00printf\u51fd\u6570\u683c\u5f0f\u5f62\u5f0f\u6781\u5176\u76f8\u4f3c\u3002\u4e3a\u4e86\u66f4\u597d\u652f\u63f4\u7528\u6237\u8f93\u5165\u8d85\u65f6\uff0cread\u63d0\u4f9b-t\u53c2\u6570\u6307\u5b9a\u8f93\u5165\u8d85\u65f6\u65f6\u95f4\u3002<\/li>\n\n\n\n<li>Swift print\u8fd4\u56de\u503c\u662fVoid\u6216(), readLine\u8fd4\u56de\u503c\u662f\u53ef\u9009\u5b57\u7b26\u4e32String?.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u5927\u90e8\u5206\u60c5\u51b5\u4e0b\uff0c\u8f93\u5165\u8f93\u51fa\u51fd\u6570\u8fd4\u56de\u503c\u6ca1\u6709\u88ab\u7279\u522b\u5173\u6ce8\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u51b5\u4e0b\uff0c\u8fd9\u4e9b\u8fd4\u56de\u503c\u683c\u5916\u6709\u7814\u7a76\u610f\u4e49\u3002 \u8fd4\u56de\u503c\u7684\u4e0d\u540c\u5f62\u6001<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8,128,136],"tags":[9,129,137],"class_list":["post-368","post","type-post","status-publish","format-standard","hentry","category-8","category-128","category-136","tag-9","tag-129","tag-137"],"views":117,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/368","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=368"}],"version-history":[{"count":4,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions"}],"predecessor-version":[{"id":2487,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/368\/revisions\/2487"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}