{"id":490,"date":"2011-11-26T00:23:14","date_gmt":"2011-11-25T16:23:14","guid":{"rendered":"http:\/\/www.hsyyf.me\/?p=490"},"modified":"2014-07-08T23:30:18","modified_gmt":"2014-07-08T15:30:18","slug":"python%e5%b0%8f%e7%bb%93%e5%8f%8a%e6%95%b0%e5%ad%a6%e7%a8%8b%e5%ba%8f%e8%af%ad%e8%a8%80%e6%9e%84%e6%83%b3","status":"publish","type":"post","link":"https:\/\/www.hsyyf.me\/?p=490","title":{"rendered":"python\u5c0f\u7ed3\u53ca\u6570\u5b66\u7a0b\u5e8f\u8bed\u8a00\u6784\u60f3"},"content":{"rendered":"<p>\u6b63\u5f0f\u63a5\u89e6python\u4e86\uff0c\u5199\u4e86\u4e00\u5c0f\u6bb5\u4ee3\u7801\uff0c\u6dfb\u52a0\u5e8f\u5217\u548c\u5224\u65ad\u662f\u5426\u5305\u542b\u3002<br \/>\n<code lang=\"python\">database=[]<br \/>\nname=raw_input(\"Name:\")<br \/>\npasswd=raw_input(\"Passwd:\")<br \/>\ndatabase.append([name,passwd])<br \/>\nprint database<br \/>\ntest=raw_input(\"test:\")<br \/>\npwd=raw_input(\"PW:\")<br \/>\nif[test,pwd]in database:<br \/>\n    print \"Yes\"<br \/>\nelse:<br \/>\n    print \"No\"<br \/>\nraw_input(\"Press Enter\")<\/code><br \/>\n\u4eceC\u5f00\u59cb\uff0c\u5230\u540e\u6765\u7684AS\uff0cVB\uff0cfortran\uff0c\u5230\u73b0\u5728\u7684Python\uff0c\u4e4b\u95f4\u8fd8\u5305\u542b\u4e00\u70b9Matlab\uff0c\u63a5\u89e6\u4e86\u4e0d\u5c11\u7f16\u7a0b\u548c\u811a\u672c\u3002\u76f8\u6bd4\u4e4b\u4e0b\uff0cC\u96be\u5ea6\u662f\u6700\u9ad8\u7684\uff0c\u4e5f\u662f\u6700\u7075\u6d3b\u7684\u3002\u6b63\u5982\u4e00\u4f4d\u670b\u53cb\u6240\u8a00\uff0c\u6ca1\u63a5\u89e6\u8fc7C\u4e94\u5e74\u4e4b\u4e0a\uff0c\u4e0d\u80fd\u79f0\u201c\u4f1aC\u201d\u3002C\u4f5c\u4e3a\u65e9\u8d77\u9ad8\u7ea7\u8bed\u8a00\uff0c\u6700\u65e9\u4fbf\u662f\u5229\u7528\u5728\u7cfb\u7edf\u4e0a\uff0c\u5176\u4f18\u8d8a\u6027\u53ef\u4ee5\u8bf4\u662f\u96be\u51fa\u5176\u5de6\u3002\u53ef\u4e5f\u6b63\u662f\u8fd9\u4e2a\u539f\u56e0\uff0cC\u8bed\u8a00\u6d89\u53ca\u5bbd\u6cdb\uff0c\u535a\u800c\u4e0d\u4e13\uff0c\u8981\u60f3\u5b66\u4f1aC\u8981\u82b1\u8d39\u5f88\u957f\u4e00\u6bb5\u65f6\u95f4\u3002<\/p>\n<p>AS\u4f5c\u4e3aflash\u7684\u811a\u672c\u8bed\u8a00\uff0c\u501f\u9274\u4e86VB\u7684\u7279\u70b9\uff0c\u5e94\u7528\u4e0a\u5f88\u5c0f\uff0c\u53ea\u80fd\u504f\u5b89\u4e00\u9685\u3002\u81f3\u4e8eVB\u66f4\u51e0\u4e4e\u662f\u65e5\u8584\u897f\u5c71\uff0c\u4e0d\u503c\u4e00\u54c2\u3002<\/p>\n<p>Matlab\u53ea\u9002\u5408\u505a\u7b80\u5355\u7684\u8ba1\u7b97\uff0c\u96be\u4ee5\u6210\u4e3a\u72ec\u7acb\u7684\u7a0b\u5e8f\uff0c\u518d\u5e9e\u5927\u7684\u5c31\u7b97\u529f\u80fd\u4e5f\u5f88\u96be\u72ec\u7acb\u51fa\u8f6f\u4ef6\u672c\u8eab\u6765\uff0c\u5fc5\u987b\u4f9d\u8d56Matlab\u672c\u8eab\u3002\u867d\u7136\u80fd\u540c\u6837\u80fd\u751f\u6210exe\u4f46\u529f\u80fd\u76f8\u5bf9\u8f83\u5f31\u3002<\/p>\n<p>Python\u521a\u521a\u63a5\u89e6\uff0c\u4e4d\u4e00\u770b\u786e\u5b9e\u5f88\u60ca\u8273\u3002\u786e\u5b9e\u6709\u81ea\u5df1\u4e0d\u5c11\u6ee1\u610f\u7684\u5730\u65b9\uff0c\u4f46\u8fd8\u672a\u6df1\u5165\u7814\u7a76\uff0c\u4e5f\u4e0d\u6562\u5984\u4e0b\u8bc4\u8bba\u3002<\/p>\n<p>\u81f3\u4e8efortran\uff0c\u51e0\u4e4e\u5c31\u662f\u4e13\u95e8\u4e3a\u8ba1\u7b97\u800c\u751f\u7684\uff0c\u4e8b\u5b9e\u4e0a\u4e5f\u786e\u5b9e\u5982\u6b64\u3002\u590d\u6570\u8fd0\u7b97\u3001\u77e9\u9635\u8fd0\u7b97\uff0c\u76f8\u6bd4\u4e8eC\uff0cfortran\u8ba1\u7b97\u6548\u7387\u786e\u5b9e\u8fdc\u80dc\u4e8eC\uff0c\u867d\u7136\u8f83Matlab\u5dee\u4e00\u4e9b\uff0c\u4f46\u7075\u6d3b\u6027\u5374\u6bd4Matlab\u5f3a\u3002Matblab\u80fd\u505a\u5230\u77e5\u5176\u7136\uff0cfortran\u5374\u80fd\u505a\u5230\u77e5\u5176\u6240\u4ee5\u7136\uff0cfortran\u4f5c\u4e3a\u7f16\u7a0b\u8bed\u8a00\u867d\u7136\u4e0d\u5982Matlab\u7b80\u6d01\uff0c\u4f46\u62e5\u6709\u66f4\u591a\u7684\u81ea\u4e3b\u6027\u3002<\/p>\n<p>\u5176\u5b9e\uff0c\u7efc\u5408\u51e0\u79cd\u7f16\u7a0b\u7684\u7279\u70b9\u548c\u8ba1\u7b97\u7684\u9700\u8981\uff0c\u4e00\u6b3e\u4e13\u6ce8\u4e8e\u8ba1\u7b97\u7f16\u7a0b\u7684\u7a0b\u5e8f\u8bed\u8a00\u5e94\u8be5\u81f3\u5c11\u5305\u62ec\u4ee5\u4e0b\u51e0\u4e2a\u7279\u70b9\uff1a<\/p>\n<ol>\n<li>\u4e25\u8c28\u6027\u3002\u6bd4\u5982\uff0c\u53d8\u91cf\u7684\u4f7f\u7528\u2014\u2014C\u8fd9\u4e00\u70b9\u505a\u7684\u76f8\u5f53\u7684\u597d\uff0c\u6bcf\u4e2a\u53d8\u91cf\u90fd\u8981\u63d0\u524d\u58f0\u660e\uff0c\u6ca1\u6709fortran\u91cc\u8ba8\u538c\u7684I-N\u89c4\u5219\uff1b\u53d8\u91cf\u533a\u5206\u5927\u5c0f\u5199\uff0c\u672c\u6765\u4e5f\u662f\u65e0\u53ef\u539a\u975e\u7684\u4e8b\uff0c\u4f46\u6709\u4e9b\u65f6\u5019\u5927\u5c0f\u5199\u4e0d\u533a\u5206\u4e5f\u662f\u4e2a\u95ee\u9898\uff0c\u6bd4\u5982Q==q\uff0c\u4f46&#8221;Q&#8221;!=&#8221;q&#8221;\uff0c\u8fd9\u4e2a\u786e\u5b9e\u5f88\u53cd\u611f\u3002\u6216\u8bb8\u662fC\u7684\u6982\u5ff5\u5148\u5165\u4e3a\u4e3b\uff0c\u8fd9\u79cd\u7ec6\u8282\u4e0a\u7684\u4e8b\u8fd8\u662f\u8981\u4e25\u8c28\u4e9b\u3002<\/li>\n<li>\u683c\u5f0f\u6e05\u6670\u660e\u4e86\u3002\u5176\u5b9e\uff0c\u8fd8\u662fC\u7684\u7279\u70b9\uff0cPython\u8fd9\u70b9\u505a\u7684\u5f88\u5dee\u52b2\uff0c\u4e00\u4e2a\u5faa\u73af\u7adf\u7136\u627e\u4e0d\u5230\u7ed3\u5c3e\uff0c\u4e0d\u80fd\u8ba9\u4eba\u4e00\u76ee\u4e86\u7136\u3002\u81f3\u4e8efortran\uff0c\u4e5f\u5dee\u4e0d\u591a\u6709\u8fd9\u4e2a\u6bdb\u75c5\uff0c\u7ed3\u6784\u4e0d\u6e05\u6670\uff0c\u6ca1\u6709\u81ea\u52a8\u7f29\u8fdb\u3002C\u7684\u6a21\u5757\u5316\u505a\u7684\u76f8\u5f53\u5230\u4f4d\uff0c\u5c42\u6b21\u6e05\u6670\uff0c\u4ece\u5c5e\u5173\u7cfb\u4e00\u76ee\u4e86\u7136\u3002\u7531\u6b64\u4e5f\u53ef\u4ee5\u770b\u51faC\u7684\u4e25\u8c28\u6027\u53ef\u89c1\u4e00\u6591\u3002<\/li>\n<li>\u5185\u7f6e\u51fd\u6570\u4e30\u5bcc\u3002\u8fd9\u4e2a\u76f8\u5bf9\u4e8e\u4e0a\u9762\u4e24\u4e2a\u66f4\u662f\u9488\u5bf9\u8ba1\u7b97\u800c\u8a00\u7684\uff0cC\u8fd9\u65b9\u9762\u505a\u5f97\u5c31\u5dee\u4e86\uff0c\u6bd5\u7adf\u4e0d\u662f\u4e13\u95e8\u7684\u8ba1\u7b97\u8bed\u8a00\u3002\u4f5c\u4e3a\u4e00\u4e2a\u8ba1\u7b97\u5de5\u5177\uff0c\u5185\u7f6e\u51fd\u6570\u4e00\u5b9a\u8981\u4e30\u5bcc\uff0c\u5c24\u5176\u662f\u8ba1\u7b97\u51fd\u6570\uff0c\u9664\u4e86\u5e38\u89c4\u7684\u521d\u7b49\u51fd\u6570\uff0c\u5bf9\u4e8e\u77e9\u9635\u7684\u8fd0\u7b97\u4e5f\u8981\u6709\uff0cMatlab\u8fd9\u70b9\u505a\u5f97\u975e\u5e38\u5230\u4f4d\uff0c\u65e0\u602a\u4e4e\u80fd\u6d41\u884c\u8fd9\u4e48\u957f\u65f6\u95f4\u3002<\/li>\n<li>\u56fe\u5f62\u5904\u7406\u80fd\u529b\u5f3a\u608d\u3002\u8fd9\u4e2a\u4e0d\u662f\u6307\u7684\u4e00\u822c\u7684GUI\u754c\u9762\uff0c\u800c\u662f\u5bf9\u56fe\u5f62\u7684\u5904\u7406\uff0c\u6bd4\u5982\u51fd\u6570\u56fe\u50cf\u7684\u7ed8\u5236\uff0c\u7ebf\u6027\u62df\u5408\uff0c\u56fe\u50cf\u7ed3\u679c\u5904\u7406\u7b49\u3002\u5728\u5206\u6790\u3001\u7edf\u8ba1\u3001\u5efa\u6a21\u7b49\u591a\u79cd\u9886\u57df\u6709\u7740\u975e\u540c\u5bfb\u5e38\u7684\u7528\u5904\u3002\u8fd9\u65b9\u9762\u662f\u5f88\u591a\u7f16\u7a0b\u8bed\u8a00\u6240\u6b20\u7f3a\u7684\uff0c\u81f3\u5c11\u73b0\u6210\u7684\u5de5\u5177\u5f88\u5c11\uff0c\u591a\u6570\u90fd\u9700\u8981\u81ea\u5df1\u60f3\u529e\u6cd5\u8bbe\u8ba1\u5efa\u6a21\u6784\u9020\u3002<\/li>\n<\/ol>\n<p>\u5520\u53e8\u4e86\u8fd9\u4e48\u4e45\uff0c\u53d1\u73b0\u81ea\u5df1\u8fd8\u662f\u5bf9C\u5ff5\u5ff5\u4e0d\u5fd8\u3002\u770b\u6765\u4e60\u60ef\u6210\u81ea\u7136\u554a\uff0c\u6d17\u6d17\u7761\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b63\u5f0f\u63a5\u89e6python\u4e86\uff0c\u5199\u4e86\u4e00\u5c0f\u6bb5\u4ee3\u7801\uff0c\u6dfb\u52a0\u5e8f\u5217\u548c\u5224\u65ad\u662f\u5426\u5305\u542b\u3002 database=[] name=raw_i [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[16],"tags":[87,88],"class_list":["post-490","post","type-post","status-publish","format-standard","hentry","category-16","tag-python","tag-88"],"_links":{"self":[{"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=\/wp\/v2\/posts\/490","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=490"}],"version-history":[{"count":0,"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=\/wp\/v2\/posts\/490\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=490"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=490"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hsyyf.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=490"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}