{"id":10130,"date":"2010-07-12T11:15:49","date_gmt":"2010-07-12T03:15:49","guid":{"rendered":"http:\/\/ukyoi.wordpress.com\/?p=10130"},"modified":"2010-07-12T11:15:49","modified_gmt":"2010-07-12T03:15:49","slug":"%e6%8e%a8%e8%8d%90%e4%b8%a4%e4%b8%aapython%e6%8c%87%e5%af%bc%e8%b5%84%e6%96%99%e5%90%a7","status":"publish","type":"post","link":"https:\/\/ukyoi.info\/wordpress\/?p=10130","title":{"rendered":"\u63a8\u8350\u4e24\u4e2aPython\u6307\u5bfc\u8d44\u6599\u5427\u2026\u2026"},"content":{"rendered":"<p>\u5176\u5b9e\u79c1\u4e00\u76f4\u5f88\u60f3\u63a8\u8350\u4e86\uff0c\u4e0d\u8fc7\u51fa\u4e8e\u79cd\u79cd\u539f\u56e0\u4e00\u76f4\u4e5f\u6ca1\u8bf4\u3002\u4eca\u5929\u8bf4\u4e00\u4e0b\u5427\u2026\u2026<\/p>\n<p>\u8fd9\u4e24\u4e2a\u90fd\u662f\u5173\u4e8ePython\u8bed\u8a00\u7684\u6559\u6750\uff08\u6216\u8005\u53eb\u6307\u5bfc\uff1f\uff09\uff0c\u5f97\u5148\u4ecb\u7ecd\u4e00\u4e0bPython\u3002<\/p>\n<p>Python\u662f\u4e00\u79cd\u7b80\u5355\u6613\u7528\u7684\u89e3\u91ca\u578b\u9ad8\u7ea7\u8bed\u8a00\uff08\u4e5f\u53ef\u4ee5\u88ab\u7c97\u7565\u5730\u5206\u7c7b\u4e3a\u201c\u811a\u672c\u8bed\u8a00\u201d\uff09\u3002\u6240\u8c13\u89e3\u91ca\u578b\uff0c\u7b80\u5355\u8bf4\u5c31\u662f\u65e0\u9700\u4e8b\u5148\u751f\u6210\u4e8c\u8fdb\u5236\u7801\uff0c\u800c\u662f\u5728\u8fd0\u884c\u65f6\u7531\u5176\u4ed6\u8bed\u8a00\u201c\u89e3\u91ca\u201d\u6210\u4e8c\u8fdb\u5236\u7801\uff0c\u518d\u4ea4\u7531\u8ba1\u7b97\u673a\u6267\u884c\u3002\u4e0d\u540c\u7684\u5e73\u53f0\u4e0a\u89e3\u91ca\u5668\u53ef\u80fd\u4e0d\u540c\uff0c\u4f46\u662f\u7a0b\u5e8f\u7684\u6e90\u4ee3\u7801\u662f\u76f8\u540c\u7684\uff0c\u56e0\u6b64\u53ea\u8981\u5e26\u597d\u6e90\u4ee3\u7801\u5c31\u53ef\u4ee5\u5728\u88c5\u6709Python\u89e3\u91ca\u5668\u7684\u4efb\u4f55\u4e00\u4e2a\u5e73\u53f0\uff08\u5305\u62ecWindows\u3001Unix\u3001\u7c7bUnix\u4ee5\u53ca\u5f88\u591a\u79c1\u4ece\u672a\u542c\u8fc7\u7684\u5e73\u53f0\uff09\u4e0a\u9762\u8fd0\u884c\uff0c\u540c\u65f6\u7531\u4e8e\u89e3\u91ca\u5668\u5e2e\u60a8\u627f\u62c5\u4e86\u786c\u4ef6\u8c03\u914d\u5de5\u4f5c\uff0c\u60a8\u53ef\u4ee5\u4e13\u6ce8\u4e8e\u7a0b\u5e8f\u672c\u8eab\u800c\u4e0d\u662f\u5982\u4f55\u7ba1\u7406\u5185\u5b58\u7b49\u7b49\u64cd\u4f5c\u3002\u5f53\u7136\u574f\u5904\u4e5f\u662f\u663e\u800c\u6613\u89c1\u7684\uff1a\u6267\u884c\u6548\u7387\u80af\u5b9a\u4e0d\u5982\u80fd\u7cbe\u786e\u63a7\u5236\u5185\u5b58\u548c\u6838\u5fc3\u7684C\u8840\u7edf\u8bed\u8a00\u3002<\/p>\n<p>Python3.x\u53d1\u5e03\u4e4b\u540e\u7531\u4e8e\u6709\u8bb8\u591a\u5173\u952e\u6027\u7684\u4fee\u6b63\uff0c\u4e0d\u518d\u4e0e\u4e4b\u524d\u7684\u7248\u672c\u517c\u5bb9\u3002\u6240\u4ee5\u76ee\u524d2.x\u30013.x\u90fd\u6709\u4eba\u4f7f\u7528\uff0c\u5e76\u4e14\u76f8\u5bf9\u6765\u8bf42.x\u53ef\u80fd\u7528\u7684\u4eba\u66f4\u591a\u3002\u4e0d\u8fc7\u5982\u679c\u60a8\u662f\u65b0\u624b\uff0c\u5efa\u8bae\u8fd8\u662f\u5b66\u4e603.x\uff0c\u4ece\u6b64\u4e4b\u540e\u53ef\u4ee5\u548c\u7f16\u7801\u7684\u56f0\u6270\u6c38\u522b\u4e86\uff0c\u5bf9\u79c1\u8fd9\u6837\u7684\u61d2\u4eba\u771f\u662f\u4e00\u5927\u798f\u97f3\u3002<\/p>\n<p>\u8bf4\u4e86\u8fd9\u4e48\u4e45\uff0c\u7ec8\u4e8e\u5230\u6b63\u9898\u4e86\u2026\u2026<\/p>\n<p>\u9996\u5148\u662f\u300a\u975e\u7a0b\u5e8f\u5458 Python \u7f16\u7a0b\u6982\u5ff5\u300b\uff08\u5bf9\u5e94python3.x\uff09\u3002\u5730\u5740\u5728\u8fd9\u91cc\uff1a<\/p>\n<p><a title=\"\u975e\u7a0b\u5e8f\u5458Python\u7f16\u7a0b\u6982\u5ff5\" href=\"http:\/\/code.google.com\/p\/hashao\/wiki\/ChinesePythonTutor\">http:\/\/code.google.com\/p\/hashao\/wiki\/ChinesePythonTutor<\/a><\/p>\n<p>\u8fd9\u662f\u8fc4\u4eca\u4e3a\u6b62\u79c1\u89c1\u8fc7\u7684\u6700\u7b80\u6d01\u6700\u597d\u73a9\u7684Python\u6559\u7a0b\u3002\u6587\u98ce\u5e7d\u9ed8\u3001\u6bd4\u55bb\u7cbe\u5f53\u3001\u5185\u5bb9\u627c\u8981\u3002\u5185\u5bb9\u975e\u5e38\u77ed\uff0c\u79c1\u4ee5\u4e3a\u5feb\u7684\u8bdd\u5927\u6982\u51e0\u5341\u5206\u949f\u5c31\u53ef\u4ee5\u770b\u5b8c\uff0c\u4f46\u5374\u4ecb\u7ecd\u4e86Python\u5927\u90e8\u5206\u529f\u80fd\u7684\u57fa\u672c\u7528\u6cd5\uff08\u5f53\u7136\u5404\u79cd\u5185\u7f6e\u51fd\u6570(Function)\u548c\u65b9\u6cd5(Method)\u662f\u4e0d\u53ef\u80fd\u5728\u8fd9\u4e48\u77ed\u7684\u6587\u7ae0\u4e2d\u89e3\u91ca\u6e05\u695a\u7684\uff09\uff0c\u975e\u5e38\u9002\u5408\u4ece\u672a\u63a5\u89e6Python\u8bed\u8a00\u7684\u4eba\u6765\u4e00\u4e2a\u6982\u89c8\u3002<\/p>\n<p>\u6bd4\u5982\u91cc\u9762\u6709\u4e00\u6bb5\u8bdd\uff1a<\/p>\n<p>\u201c\u5728Python\u91cc\uff0c\u6b21\u5e8f\u662f\u4ece0\u5f00\u59cb\u6570\u7684\uff0c\u5f00\u59cb\u662f0\uff0c\u7136\u540e\u662f1\uff0c2\uff0c3\uff0c4\uff0c5\uff0c\u6240\u4ee5\u4e0a\u9762\u7684\u5217\u8868 alist\u7684\u7b2c\u4e00\u4e2a\u5185\u5bb9\uff0c\u53ef\u4ee5\u7528alist[0]\u6765\u63d0\u53d6\uff0c\u7b2c\u4e8c\u4e2a\u7528alist[1]\u6765\u63d0\u53d6\u3002\u5c31\u50cf\u5e74\u9f84\u4e00\u6837\uff0c\u4e00\u751f\u4e0b\u6765\u662f\u96f6\u5c81\uff0c\u4e00\u5e74\u4ee5\u540e\u624d\u662f\u4e00\u5c81\uff0c\u4e0d\u662f\u4e2d\u56fd\u4f20\u7edf\u90a3\u6837\uff0c\u751f\u4e0b\u6765\u5c31\u4e00\u5c81\uff0c\u90a3\u662f\u865a\u5c81\u3002\u87d2\u86c7\u8bed\u8a00\u4ed6\u53ea\u8ba4\u51c6\u786e\u7684\u4e1c\u897f\uff0c\u4e0d\u73a9\u513f\u865a\u7684\u3002\u201d<\/p>\n<p>\u662f\u4e0d\u662f\u5f88\u597d\u73a9\uff1f<\/p>\n<p>\u5f53\u7136\uff0c\u65e2\u7136\u53eb\u505a\u201c\u975e\u7a0b\u5e8f\u5458\u7f16\u7a0b\u6982\u5ff5\u201d\uff0c\u5c31\u662f\u8bf4\u53ea\u80fd\u8ba9\u60a8\u7406\u89e3\u4e3b\u8981\u6982\u5ff5\uff0c\u56e0\u800c\u5373\u4f7f\u60a8\u770b\u5b8c\u4e86\u5168\u6587\u8fd8\u5e76\u4e0d\u80fd\u771f\u6b63\u5f88\u597d\u5730\u7f16\u7a0b\uff08\u5f53\u7136\u5982\u679c\u60a8\u5c31\u5199\u4e2a\u7b49\u5dee\u6570\u5217\u6c42\u548c\u90a3\u662f\u7ef0\u7ef0\u6709\u4f59\u4e86\uff09\uff0c\u6240\u4ee5\u5728\u6587\u7ae0\u7684\u672b\u5c3e\uff0c\u4f5c\u8005\u8fd8\u63a8\u8350\u4e86\u4e00\u4e9b\u6559\u6750\uff0c\u90fd\u662f\u597d\u4e66\uff08\u5e76\u4e14\u597d\u591a\u90fd\u662f\u4e2d\u6587\u7248\uff09\uff0c\u6df1\u5165\u5b66\u4e60\u5f88\u6709\u597d\u5904\u3002<\/p>\n<p>\u4e0d\u8fc7\u79c1\u4e2a\u4eba\u8fd8\u662f\u8981\u63a8\u8350\u4e0b\u4e00\u672c\u4e66\u2026\u2026<\/p>\n<p>\u4e0b\u4e00\u672c\uff0c\u662fPython\u754c\u5927\u540d\u9f0e\u9f0e\u7684\u300aA Byte of Python\u300b\uff0c\u5b98\u65b9\u7f51\u7ad9\u5728\u8fd9\u91cc\uff1a<\/p>\n<p><a title=\"\u300aA Byte of Python\u300b\u5b98\u65b9\u4e3b\u9875\" href=\"http:\/\/www.swaroopch.com\/notes\/Python\">http:\/\/www.swaroopch.com\/notes\/Python<\/a><\/p>\n<p>\u5199\u8fd9\u672c\u4e66\u7684\u662f\u4e2a\u5370\u5ea6\u4eba\uff0c\u53ebSwaroop\uff0c\u90a3\u4e2aSwaroopCH\u662f\u4ed6\u7684\u5b98\u65b9\u7f51\u7ad9\uff0c\u4ed6\u8fd8\u6709\u4e00\u672c\u4e66\u53eb\u505a\u300aA byte of Vim\u300b\uff0c\u662f\u6559Vim\u7f16\u8f91\u5668\u7684\u3002<\/p>\n<p>\u300aA Byte of Python\u300b\u4e2d\u6587\u540d\u4e3a\u300a\u7b80\u660ePython\u6559\u7a0b\u300b\uff0c\u6709\u5bf9\u5e94python2.x\u548c3.x\u7684\u7248\u672c\uff08\u5747\u53ef\u5728\u5b98\u7f51\u627e\u5230\uff09\uff0c\u4e0d\u8fc7for 3.x\u7684\u662f\u6ca1\u6709\u4e2d\u6587\u7248\u7684\uff08\u81f3\u5c11\u79c1\u6ca1\u6709\u627e\u5230\uff09\u3002\u5176\u5b9e\u4e2d\u6587\u7248\u5fc5\u8981\u6027\u5e76\u4e0d\u592a\u5927\uff0c\u56e0\u4e3a\u8fd9\u672c\u4e66\u7684\u8bed\u8a00\u975e\u5e38\u7b80\u6d01\uff08\u867d\u7136\u4e00\u70b9\u4e5f\u4e0d\u5e7d\u9ed8\uff09\uff0c\u7528\u7684\u8bed\u6cd5\u4e5f\u5f88\u7b80\u5355\uff0c\u6700\u591a\u5c31\u662f\u51e0\u4e2a\u5355\u8bcd\uff08\u672f\u8bed\uff09\u4e0d\u5bb9\u6613\u8ba4\uff0c\u7a0d\u5fae\u67e5\u67e5\u5b57\u5178\u5c31\u53ef\u4ee5\u4e86\uff08\u800c\u4e14\u60a8\u82f1\u6587\u4e0d\u8ba4\u8bc6\u7684\u8bdd\u7ffb\u8bd1\u6210\u4e2d\u6587\u8fd8\u771f\u672a\u5fc5\u660e\u767d\uff0c\u56e0\u4e3a\u5f88\u591a\u662f\u672f\u8bed\uff09\u3002\u5927\u6982\u770b\u5b98\u4eec\u6709\u77e5\u9053\u79c1E\u6587\u6c34\u5e73\u7684\uff0c\u79c1\u8fd9\u5bb6\u5e95\u90fd\u80fd\u770b\uff0c\u60a8\u8fd8\u62c5\u5fc3\u4ec0\u4e48\u5462\uff1f<\/p>\n<p>\u8fd9\u672c\u4e66\u540c\u6837\u662f\u6307\u5bfc\u6027\u8d28\u7684\u4e66\uff08\u800c\u975e\u53c2\u8003\u6027\u8d28\uff0c\u8fd9\u70b9\u5f88\u91cd\u8981\uff09\uff0c\u4e0d\u8fc7\u91cc\u9762\u8bb2\u7684\u53ef\u5c31\u7cfb\u7edf\u591a\u4e86\uff0c\u79c1\u4ee5\u4e3a\u5b8c\u5168\u53ef\u4ee5\u4f5c\u6559\u6750\u4f7f\u7528\uff08\u76f8\u6bd4\u4e4b\u4e0bPython\u7684\u5b98\u65b9Tutorial\u5012\u662f\u6666\u6da9\u4e0d\u5c11\uff09\u3002\u5f53\u60a8\u9605\u8bfb\u5b8c\u5168\u4e66\u4e4b\u540e\uff0c\u6700\u540e\u4e00\u4e2a\u4efb\u52a1\u662f\u7f16\u5199\u4e00\u4e2a\u6587\u672c\u5730\u5740\u7c3f\u7a0b\u5e8f\uff0c\u5982\u679c\u60a8\u5f88\u5feb\u60f3\u5230\u7528\u4ec0\u4e48\u65b9\u6cd5\u5e76\u4e14\u6700\u7ec8\u5b9e\u73b0\u7684\u8bdd\uff0c\u57fa\u672c\u53ef\u4ee5\u8bf4\u60a8\u5c31\u638c\u63e1\u4e86Python\u7684\u57fa\u7840\u6280\u5de7\u3002\u4e0d\u8fc7\u6b63\u5982\u6587\u4e2d\u6240\u8bf4\uff0c\u8fd9\u662f\u201c\u8d77\u6b65\u9636\u6bb5\u7684\u7ed3\u675f\u201d\uff0c\u672a\u6765\u7684\u8def\u8fd8\u5f88\u957f\uff0c\u6d3b\u5230\u8001\u5b66\u5230\u8001\uff0c\u5927\u6982\u2026\u2026<\/p>\n<p>\u55ef\uff0c\u5148\u5199\u8fd9\u4e48\u591a\u5427\u3002\u6709\u610f\u8005\u65e0\u804a\u8005\u90fd\u53ef\u4ee5\u53bb\u770b\u770b\uff0c\u4e24\u672c\u4e66\uff08\u548c\u91cc\u9762\u63d0\u53ca\u7684\u53c2\u8003\u8d44\u6599\uff09\u90fd\u662f\u4e0d\u9519\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5176\u5b9e\u79c1\u4e00\u76f4\u5f88\u60f3\u63a8\u8350\u4e86\uff0c\u4e0d\u8fc7\u51fa\u4e8e\u79cd\u79cd\u539f\u56e0\u4e00\u76f4\u4e5f\u6ca1\u8bf4\u3002\u4eca\u5929\u8bf4\u4e00\u4e0b\u5427\u2026\u2026 \u8fd9\u4e24\u4e2a\u90fd\u662f\u5173\u4e8ePython\u8bed\u8a00\u7684\u6559\u6750\uff08\u6216\u8005 &#8230; <a title=\"\u63a8\u8350\u4e24\u4e2aPython\u6307\u5bfc\u8d44\u6599\u5427\u2026\u2026\" class=\"read-more\" href=\"https:\/\/ukyoi.info\/wordpress\/?p=10130\" aria-label=\"\u9605\u8bfb \u63a8\u8350\u4e24\u4e2aPython\u6307\u5bfc\u8d44\u6599\u5427\u2026\u2026\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,9,12],"tags":[53,60],"class_list":["post-10130","post","type-post","status-publish","format-standard","hentry","category-4","category-9","category--internet","tag-python","tag-vim"],"_links":{"self":[{"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10130"}],"version-history":[{"count":0,"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/10130\/revisions"}],"wp:attachment":[{"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10130"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10130"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ukyoi.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}