{"id":218,"date":"2019-02-15T18:17:58","date_gmt":"2019-02-15T10:17:58","guid":{"rendered":"http:\/\/blog.maoyunwang.top\/?p=218"},"modified":"2019-02-15T18:17:58","modified_gmt":"2019-02-15T10:17:58","slug":"%e6%8f%90%e9%97%ae%e7%9a%84%e6%99%ba%e6%85%a7","status":"publish","type":"post","link":"https:\/\/blog.tongyunli.top\/?p=218","title":{"rendered":"\u63d0\u95ee\u7684\u667a\u6167"},"content":{"rendered":"<blockquote>\n<h2>\u5f53\u4f60\u62cb\u51fa\u4e00\u4e2a\u6280\u672f\u95ee\u9898\u65f6\uff0c\u6700\u7ec8\u662f\u5426\u80fd\u5f97\u5230\u6709\u7528\u7684\u56de\u7b54\uff0c\u5f80\u5f80\u53d6\u51b3\u4e8e\u4f60\u6240\u63d0\u95ee\u548c\u8ffd\u95ee\u7684\u65b9\u5f0f\u3002 \u2014\u2014 Eric S. Raymond<\/h2>\n<\/blockquote>\n<p>\u6709\u65f6\u5019\uff0c\u6e05\u6670\u63cf\u8ff0\u4e00\u4e2a\u95ee\u9898\uff0c\u7279\u522b\u662f\u6280\u672f\u95ee\u9898\u6ca1\u6709\u60f3\u8c61\u7684\u90a3\u4e48\u7b80\u5355\u3002\u63d0\u95ee\u4ece\u6765\u5c31\u662f\u4e00\u95e8\u5b66\u95ee\uff0c\u53ef\u60dc\u5f88\u591a\u4eba\u6ca1\u6709\u610f\u8bc6\u5230\u8fd9\u4e00\u70b9\uff0c\u6216\u8005\u6ca1\u6709\u7ed9\u4e88\u8db3\u591f\u7684\u91cd\u89c6\u3002\u6216\u8005\uff0c\u6709\u7684\u63d0\u95ee\u8005\u6839\u672c\u4e0d\u662f\u62b1\u7740\u63d0\u95ee\u7684\u6001\u5ea6\u6765\u8bf7\u6c42\u5927\u5bb6\u7684\u5e2e\u52a9\u3002\u6240\u4ee5\u6211\u4eec\u4f1a\u53d1\u73b0\u5404\u79cd\u8ba9\u4eba\u65e0\u6cd5\u89e3\u7b54\u6216\u8005\u65e0\u5fc3\u89e3\u7b54\u7684\u95ee\u9898\uff1a<\/p>\n<ul>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/segmentfault.com\/q\/1010000005694368\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">java\u6b63\u5219\u8868\u8fbe\u5f0f\u95ee\u9898\uff1f<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/segmentfault.com\/q\/1010000005695451\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">sla\u54cd\u5e94\u65f6\u95f4\u662f\u6307\u4ec0\u4e48\uff1f<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/segmentfault.com\/q\/1010000005694256\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">ATL\u7c7b\u4e0e\u4e00\u822c\u7684\u7c7b\u7ee7\u627f\u6709\u4ec0\u4e48\u533a\u522b<\/a><\/li>\n<\/ul>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic2.zhimg.com\/80\/v2-c14ead48515c668e4c3a54b43fa01dd0_hd.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" data-original=\"https:\/\/pic2.zhimg.com\/80\/v2-c14ead48515c668e4c3a54b43fa01dd0_hd.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"1110\" \/><\/div>\u53bb segmentfault \u7684\u672a\u56de\u7b54\u9898\u76ee\u4e2d\u968f\u4fbf\u5c31\u80fd\u627e\u5230\u4e00\u5806\u8fd9\u6837\u7684\u95ee\u9898\uff0c\u6240\u4ee5\u5f88\u591a\u4eba\u663e\u7136\u5e76\u6ca1\u6709\u63d0\u95ee\u7684\u667a\u6167\u6216\u8005\u6ca1\u6709\u5f88\u597d\u7684\u6001\u5ea6\u3002Raymond \u548c Rick Moen \u5199\u4e86\u4e00\u4efd\u7ecf\u5178\u7684\u6587\u7ae0 <a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/www.catb.org\/~esr\/faqs\/smart-questions.html%23translations\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How To Ask Questions The Smart Way<\/a> \u4e13\u95e8\u6765\u63cf\u8ff0\u5982\u4f55\u63d0\u95ee\uff0c\u8fd9\u7bc7\u6587\u7ae0\u88ab\u7ffb\u8bd1\u6210\u5404\u56fd\u6587\u5b57\uff0c\u7559\u4f20\u5f88\u5e7f\uff0c\u53ef\u4ee5\u5728<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/github.com\/ryanhanwu\/How-To-Ask-Questions-The-Smart-Way\/blob\/master\/README-zh_CN.md\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\u8fd9\u91cc<\/a>\u627e\u5230\u4e2d\u6587\u7248\u3002Stackoverflow \u548c Segmentfalut \u4e5f\u7ed9\u51fa\u4e86\u5173\u4e8e\u63d0\u95ee\u7684\u5efa\u8bae\uff1a<\/p>\n<ul>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/stackoverflow.com\/help\/asking\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Help Center &gt; Asking<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/stackoverflow.com\/questions\/ask\/advice\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How to Ask<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/stackoverflow.com\/help\/how-to-ask\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How do I ask a good question?<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/segmentfault.com\/faq%23what-should-ask\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\u4ec0\u4e48\u6837\u7684\u95ee\u9898\u624d\u662f\u53d7\u6b22\u8fce\u7684<\/a><\/li>\n<\/ul>\n<p>\u5728 Stackoverflow \u53ef\u4ee5\u770b\u5230\u592a\u591a\u7ecf\u5178\u7684\u95ee\u9898\uff0c\u6211\u4eec\u53ef\u4ee5\u4ece\u8fd9\u4e9b\u95ee\u9898\u4e2d\u5b66\u4e60\u5982\u4f55\u53bb\u63d0\u95ee\uff0c\u5982\u4f55\u548c\u7b54\u9898\u8005\u6c9f\u901a\u3002\u5f53\u4f60\u770b\u4e60\u60ef\u4e86stackoverflow \u4e0a\u9762\u7684\u95ee\u9898\uff0c\u63d0\u95ee\u65f6\u5c31\u4f1a\u4e0d\u81ea\u89c9\u53bb\u6a21\u4eff\uff0c\u4ece\u800c\u907f\u514d\u95ee\u51fa\u65e0\u8111\u95ee\u9898\u3002\u4e0b\u9762\u662f\u63d0\u95ee\u65f6\u6700\u9700\u8981\u6ce8\u610f\u7684\u51e0\u4e2a\u95ee\u9898\uff1a<\/p>\n<ul>\n<li>\u95ee\u641c\u7d22\u5f15\u64ce\u6ca1\u6709\u6ee1\u610f\u7b54\u6848\uff08<a href=\"https:\/\/www.baidu.com\/s?wd=google&amp;tn=24004469_oem_dg&amp;rsv_dl=gh_pl_sl_csd\" target=\"_blank\" rel=\"noopener noreferrer\">google<\/a> \u8d77\u7801\u8fc7\u56db\u9875\uff09\u7684\u95ee\u9898<\/li>\n<li>\u95ee\u90a3\u4e9b\u81ea\u5df1\u65e0\u6cd5\u72ec\u7acb\u89e3\u51b3\uff0c\u5df2\u7ecf\u505a\u8fc7\u5f88\u591a\u5c1d\u8bd5\u7684\u95ee\u9898<\/li>\n<li>\u5c3d\u91cf\u6e05\u695a\u5730\u63cf\u8ff0\u95ee\u9898\uff1a\u826f\u597d\u7684\u6392\u7248\uff0c\u4ee3\u7801\uff0c\u9519\u8bef\u63d0\u793a\uff0c\u56fe\u7247\u7b49<\/li>\n<li>\u8ba9\u4f60\u7684\u95ee\u9898\u5bf9\u522b\u4eba\u6709\u5e2e\u52a9<\/li>\n<li>\u95ee\u9898\u8981\u6709\u786e\u5b9a\u7684\u7b54\u6848\uff0c\u4e0d\u8981\u6709\u592a\u591a\u7684\u4e3b\u89c2\u6027<\/li>\n<\/ul>\n<h2>\u4e0d\u540c\u7684\u65b9\u6848<\/h2>\n<p>\u5f88\u591a\u65f6\u5019\u6211\u4eec\u5e0c\u671b\u80fd\u591f\u627e\u5230\u4e00\u4e2a\u89e3\u51b3\u529e\u6cd5\uff0c\u4f46\u662f\u5728 stackoverflow \u4e0a\uff0c\u7ecf\u5e38\u4f1a\u6709\u610f\u5916\u7684\u6536\u83b7\u3002\u4f60\u53ef\u80fd\u4f1a\u770b\u5230\u5bf9\u4e00\u4e2a\u95ee\u9898\u4e0d\u540c\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u751a\u81f3\u5305\u62ec\u5bf9\u8fd9\u4e9b\u89e3\u51b3\u65b9\u6848\u7684\u6bd4\u8f83\u3002<\/p>\n<p>\u5047\u8bbe\u73b0\u5728\u4f60\u60f3\u77e5\u9053 python \u4e2d\u5982\u4f55\u8c03\u7528\u5916\u90e8\u547d\u4ee4\uff0c\u6bd4\u5982 ls -l \u6765\u6253\u5370\u67d0\u4e2a\u76ee\u5f55\u4e0b\u9762\u7684\u6587\u7ae0\u3002Google\u4e00\u4e0b <code>python call system command<\/code>\uff0c\u7b2c\u4e00\u6761\u5c31\u662fstackoverflow \u4e0a\u9762\u7684\u4e00\u4e2a\u76f8\u5173\u95ee\u9898\uff1a<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/stackoverflow.com\/questions\/89228\/calling-an-external-command-in-python\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Calling an external command in Python.<\/a> \uff08google\u6280\u672f\u95ee\u9898\uff0c\u57fa\u672c\u90fd\u4f1a\u663e\u793a stackoverflow \u76f8\u5173\u95ee\u9898\uff09\u3002<\/p>\n<p>\u7136\u540e\u5728\u8fd9\u4e2a\u95ee\u9898\u4e0b\u9762\uff0c\u6709\u4eba\u603b\u7ed3\u4e86\u8c03\u7528\u5916\u90e8\u547d\u4ee4\u7684\u51e0\u79cd\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li>os.system()<\/li>\n<li>os.popen()<\/li>\n<li>subprocess.popen()<\/li>\n<li>subprocess.call()<\/li>\n<li>subprocess.run()<\/li>\n<\/ul>\n<p>\u5e76\u4e14\u8fd8\u5bf9\u6bcf\u4e2a\u65b9\u6cd5\u505a\u4e86\u4ecb\u7ecd\uff0c\u4f60\u53ef\u4ee5\u9009\u62e9\u9002\u5408\u81ea\u5df1\u5e94\u7528\u573a\u666f\u7684\u65b9\u6cd5\u3002\u518d\u6bd4\u5982\u8fd9\u4e2a\u95ee\u9898 <a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/stackoverflow.com\/questions\/82831\/how-to-check-whether-a-file-exists-using-python\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How to check whether a file exists using Python?<\/a>\uff0c\u4ecb\u7ecd\u4e86 python \u4e2d\u68c0\u67e5\u6587\u4ef6\u662f\u5426\u5b58\u5728\u7684\u4e0d\u540c\u65b9\u6cd5\u3002<\/p>\n<h2><a name=\"t2\"><\/a>\u5de5\u5177\u7684\u4f7f\u7528<\/h2>\n<p>\u6709\u8bb8\u591a\u5f3a\u6709\u529b\u7684\u5de5\u5177\u53ef\u4ee5\u5e2e\u6211\u4eec\u66f4\u597d\u5730\u7814\u7a76\u95ee\u9898\uff0c\u4f60\u53ef\u80fd\u77e5\u9053gdb\u8c03\u8bd5\u5de5\u5177\uff0c\u53ef\u80fd\u77e5\u9053python\u7684timeit\u65f6\u95f4\u76d1\u63a7\u6a21\u5757\uff0c\u4f46\u662f\u4f60\u4e0d\u77e5\u9053\u90a3\u4e9b\u81ea\u5df1\u4e0d\u77e5\u9053\u7684\u5de5\u5177\u3002\u5f88\u591a\u65f6\u5019\uff0c\u5f53\u7b2c\u4e00\u6b21\u77e5\u9053\u67d0\u4e2a\u5de5\u5177\u65f6\uff0c\u6211\u4eec\u5fc3\u4e2d\u4f1a\u4ea7\u751f<a href=\"https:\/\/www.baidu.com\/s?wd=%E7%9B%B8%E8%A7%81%E6%81%A8%E6%99%9A&amp;tn=24004469_oem_dg&amp;rsv_dl=gh_pl_sl_csd\" target=\"_blank\" rel=\"noopener noreferrer\">\u76f8\u89c1\u6068\u665a<\/a>\u7684\u611f\u89c9\u3002\u7136\u800c\uff0c\u5fc3\u4eea\u7684\u8d81\u624b\u5de5\u5177\u603b\u662f\u90a3\u4e48\u53ef\u9047\u4e0d\u53ef\u6c42\u3002<\/p>\n<p>\u5728 stackoverflow\uff0c\u6bcf\u4e00\u4e2a\u95ee\u9898\u7b54\u6848\u6216\u8005\u8bc4\u8bba\u4e2d\u90fd\u53ef\u80fd\u4f1a\u6709\u4e00\u4e9b\u597d\u7684\u5de5\u5177\uff0c\u4f60\u603b\u6709\u673a\u4f1a\u53d1\u73b0\u90a3\u4e9b\u9057\u843d\u5728<a href=\"https:\/\/www.baidu.com\/s?wd=%E5%AD%97%E9%87%8C%E8%A1%8C%E9%97%B4&amp;tn=24004469_oem_dg&amp;rsv_dl=gh_pl_sl_csd\" target=\"_blank\" rel=\"noopener noreferrer\">\u5b57\u91cc\u884c\u95f4<\/a>\u7684\u4f18\u79c0\u5de5\u5177\u3002<\/p>\n<p>\u4e0b\u9762\u5217\u51fa\u6211\u53d1\u73b0\u7684\u4e00\u4e9b\u4e0d\u9519\u7684\u5de5\u5177\uff1a<\/p>\n<ul>\n<li><code>truss\/strace<\/code>\uff1a\u8ddf\u8e2a\u8fdb\u7a0b\u6267\u884c\u65f6\u7684\u7cfb\u7edf\u8c03\u7528\u548c\u6240\u63a5\u6536\u7684\u4fe1\u53f7\uff0cstrace\u53ef\u4ee5\u8ddf\u8e2a\u5230\u4e00\u4e2a\u8fdb\u7a0b\u4ea7\u751f\u7684\u7cfb\u7edf\u8c03\u7528\uff0c\u5305\u62ec\u53c2\u6570\uff0c\u8fd4\u56de\u503c\uff0c\u6267\u884c\u6d88\u8017\u7684\u65f6\u95f4\u3002\uff08\u6765\u81ea\u95ee\u9898\uff1a<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/stackoverflow.com\/questions\/9371238\/why-is-reading-lines-from-stdin-much-slower-in-c-than-python\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Why is reading lines from stdin much slower in C++ than Python?<\/a>\uff09<\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/github.com\/nvdv\/vprof\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">vprof<\/a>\uff1a\u4e00\u4e2a\u53ef\u89c6\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u5206\u6790 Python \u7a0b\u5e8f\u7684\u7279\u70b9\uff0c\u6bd4\u5982\u8fd0\u884c\u65f6\u95f4\uff0c\u5185\u5b58\u4f7f\u7528\u7b49\u3002\uff08\u6765\u81ea\u95ee\u9898\uff1a<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/stackoverflow.com\/questions\/582336\/how-can-you-profile-a-python-script\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">How can you profile a Python script?<\/a>\uff09<\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/www.regex101.com\/\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Regex 101<\/a>\uff1a\u4e00\u6b3e\u5728\u7ebf\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u8f85\u52a9\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u7406\u89e3\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u542b\u4e49\uff0c\u65b9\u4fbf\u8c03\u8bd5\u6b63\u5219\u8868\u8fbe\u5f0f\u4ee5\u53ca\u505a\u4e00\u4e9b\u7b80\u5355\u7684\u5c1d\u8bd5\u3002\uff08\u6765\u81ea\u95ee\u9898\uff1a<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/stackoverflow.com\/questions\/4736\/learning-regular-expressions\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Learning Regular Expressions<\/a>\uff09<\/li>\n<\/ul>\n<p><div class='fancybox-wrapper lazyload-container-unload' data-fancybox='post-images' href='https:\/\/pic4.zhimg.com\/80\/v2-c50ba34051e43215b34360bb914b6d35_hd.jpg'><img class=\"lazyload lazyload-style-1\" src=\"data:image\/svg+xml;base64,PCEtLUFyZ29uTG9hZGluZy0tPgo8c3ZnIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgc3Ryb2tlPSIjZmZmZmZmMDAiPjxnPjwvZz4KPC9zdmc+\"  decoding=\"async\" class=\"origin_image zh-lightbox-thumb lazy\" data-original=\"https:\/\/pic4.zhimg.com\/80\/v2-c50ba34051e43215b34360bb914b6d35_hd.jpg\" src=\"data:image\/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXYzh8+PB\/AAffA0nNPuCLAAAAAElFTkSuQmCC\" alt=\"\" width=\"1200\" \/><\/div><\/p>\n<h2><a name=\"t3\"><\/a>\u601d\u8003\u7684\u8fc7\u7a0b<\/h2>\n<p>\u5f88\u591a\u65f6\u5019\uff0c\u9047\u5230\u4e00\u4e2a\u95ee\u9898\uff0c\u6211\u4eec\u6839\u672c\u65e0\u4ece\u4e0b\u624b\uff0c\u4e0d\u77e5\u9053\u671d\u54ea\u4e2a\u65b9\u5411\u601d\u8003\u3002\u4f46\u662f\u901a\u8fc7 stackoverflow\uff0c\u6211\u4eec\u53ef\u4ee5\u8f7b\u6613\u77e5\u9053\u5177\u4f53\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u6709\u65f6\u5019\u751a\u81f3\u8fd8\u80fd\u77e5\u9053\u522b\u4eba\u9762\u5bf9\u8fd9\u4e2a\u95ee\u9898\u65f6\u5019\u662f\u600e\u4e48\u601d\u8003\u7684\u3002<\/p>\n<p>\u5047\u8bbe\u4f60\u60f3\u5229\u7528\u88c5\u9970\u5668\u6765\u5b8c\u6210\u4e00\u4e2a\u4efb\u52a1\uff0c\u5373\u5728\u4e0b\u9762say\u51fd\u6570\u8fd4\u56de\u7684\u5b57\u7b26\u4e32\u524d\u540e\u52a0\u4e0a\uff0c\u4f60\u60f3\u60f3\u8fd9\u6837\u5b9a\u4e49 say\u3002<\/p>\n<div class=\"highlight\">\n<pre><code class=\"language-text\">@makebold\n@makeitalic\ndef say():\nreturn \"Hello\"\n<\/code><\/pre>\n<\/div>\n<p>\u6bcf\u6b21\u8c03\u7528 say \u8fd4\u56de <code><em>Hello<\/em><\/code>\u3002\u4f46\u662f\u8981\u5982\u4f55\u5b9e\u73b0 makebold \u548c makeitalic \u5462\uff0c\u8fd9\u662f\u4e00\u4e2a<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/stackoverflow.com\/questions\/739654\/how-can-i-make-a-chain-of-function-decorators-in-python\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\u95ee\u9898<\/a>\u3002\u5728 stackoverflow \u4e0a\uff0c\u6709\u5927\u725b\u4f1a\u76f4\u63a5\u544a\u8bc9\u4f60\u7b54\u6848\uff0c\u5e76\u6254\u7ed9\u4f60\u4e00\u4e2a\u88c5\u9970\u5668\u7684\u6587\u6863\u94fe\u63a5\u3002\u4f46\u662f\u8fd8\u6709\u5927\u725b\u4f1a\u628a\u81ea\u5df1\u7684\u601d\u8003\u8fc7\u7a0b\uff0c\u628a\u81ea\u5df1\u5bf9\u88c5\u9970\u5668\u7684\u7406\u89e3\u8be6\u7ec6\u5730\u544a\u8bc9\u4f60\uff0c\u8ba9\u4f60\u6df1\u5165\u53bb\u7406\u89e3\u88c5\u9970\u5668\u673a\u5236\u3002<\/p>\n<p>\u9488\u5bf9\u4e0a\u9762\u7684\u8fd9\u4e2a\u95ee\u9898\uff0c\u6709\u4e00\u4e2a\u7b54\u6848\u83b7\u5f97\u4e86 3000 \u591a\u8d5e\uff0c\u4e00\u6b65\u6b65\u544a\u8bc9\u5927\u5bb6\u5982\u4f55\u89e3\u51b3\u95ee\u9898\u3002\u9996\u5148\u544a\u8bc9\u6211\u4eecpython\u4e2d\u51fd\u6570\u6709\u4ec0\u4e48\u7279\u70b9\uff1a<\/p>\n<ul>\n<li>\u51fd\u6570\u662f\u5bf9\u8c61<\/li>\n<li>\u51fd\u6570\u53ef\u4ee5\u88ab\u8d4b\u7ed9\u4e00\u4e2a\u53d8\u91cf<\/li>\n<li>\u51fd\u6570\u53ef\u4ee5\u88ab\u5b9a\u4e49\u5728\u53e6\u4e00\u4e2a\u51fd\u6570\u4e2d<\/li>\n<li>\u4e00\u4e2a\u51fd\u6570\u53ef\u4ee5\u8fd4\u56de\u53e6\u4e00\u4e2a\u51fd\u6570<\/li>\n<li>\u53ef\u4ee5\u628a\u51fd\u6570\u4f5c\u4e3a\u53c2\u6570\u4f20\u9012<\/li>\n<\/ul>\n<p>\u7136\u540e\u5f00\u59cb\u89e3\u91ca\u4ec0\u4e48\u662f\u88c5\u9970\u5668\uff1a\u5176\u5b9e\u5c31\u662f\u5c01\u88c5\u5668\uff0c\u53ef\u4ee5\u8ba9\u6211\u4eec\u5728\u4e0d\u4fee\u6539\u539f\u51fd\u6570\u7684\u57fa\u7840\u4e0a\uff0c\u5728\u6267\u884c\u539f\u51fd\u6570\u7684\u524d\u540e\u6267\u884c\u522b\u7684\u4ee3\u7801\u3002\u63a5\u4e0b\u6765\u624b\u5de5\u5b9e\u73b0\u4e86\u4e00\u4e2a\u7b80\u5355\u7684\u88c5\u9970\u5668\u539f\u578b\uff0c\u7d27\u63a5\u7740\u5f15\u5165 python \u4e2d\u7684\u88c5\u9970\u5668\u8bed\u6cd5\u3002\u6700\u540e\u8fd8\u5217\u51fa\u4e86\u4e00\u4e9b\u88c5\u9970\u5668\u7684\u9ad8\u7ea7\u7528\u6cd5\uff0c\u5305\u62ec\u7ed9\u88c5\u9970\u5668\u4f20\u9012\u53c2\u6570\u7b49\u3002\u8bfb\u5b8c\u6574\u4e2a\u7b54\u6848\uff0c\u4e00\u5b9a\u80fd\u5bf9\u88c5\u9970\u5668\u6709\u8f83\u6df1\u7684\u7406\u89e3\uff0c\u5e76\u4e14\u77e5\u9053\u7406\u89e3\u88c5\u9970\u5668\u7684\u601d\u8003\u8fc7\u7a0b\u3002\u8fd9\u6837\uff0c\u6cbf\u7740\u8fd9\u6761\u601d\u8003\u7684\u8def\u5f84\uff0c\u4f60\u81ea\u5df1\u5c31\u53ef\u4ee5\u63a8\u5bfc\u51fa\u88c5\u9970\u5668\u7684\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<h2><a name=\"t4\"><\/a>\u53ef\u80fd\u7684\u76f2\u533a<\/h2>\n<p>\u6ca1\u6709\u95ee\u9898\u8981\u63d0\u95ee\u65f6\u4e5f\u53ef\u4ee5\u65f6\u5e38\u901b\u4e00\u901b stackoverflow\uff0c\u6d4f\u89c8\u4e00\u4e9b\u6295\u7968\u6bd4\u8f83\u591a\u7684\u95ee\u9898\uff0c\u770b\u770b\u522b\u4eba\u7684\u56de\u7b54\u3002\u5728\u8fd9\u4e2a\u5e9e\u5927\u7684\u77e5\u8bc6\u5e93\u4e2d\uff0c\u4f60\u5f88\u53ef\u80fd\u4f1a\u53d1\u73b0\u81ea\u5df1\u7684\u4e00\u4e9b\u8ba4\u77e5\u76f2\u533a\uff0c\u53d1\u73b0\u4e00\u4e9b\u81ea\u5df1\u4ece\u672a\u5173\u6ce8\u8fc7\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u6211\u5c31\u53d1\u73b0\u4e86\u4e00\u4e9b\u6bd4\u8f83\u6709\u610f\u601d\u7684\u95ee\u9898\uff0c\u6bd4\u5982\uff1a<\/p>\n<ul>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/stackoverflow.com\/questions\/287871\/print-in-terminal-with-colors-using-python\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Print in terminal with colors using Python?<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/stackoverflow.com\/questions\/100003\/what-is-a-metaclass-in-python\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">What is a metaclass in Python?<\/a><\/li>\n<li><a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=http%3A\/\/stackoverflow.com\/questions\/1218390\/what-is-your-most-productive-shortcut-with-vim\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">What is your most productive shortcut with Vim?<\/a><\/li>\n<\/ul>\n<p>\u6211\u6574\u7406\u4e86\u4e00\u4efd Python \u7684\u9ad8\u8d28\u91cf\u95ee\u9898\u6e05\u5355\uff0c\u653e\u5728<a class=\"wrap external\" href=\"https:\/\/link.zhihu.com\/?target=https%3A\/\/github.com\/xuelangZF\/CS_Offer\/blob\/master\/More\/Python_StackOverflow.md\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">\u8fd9\u91cc<\/a>\u4ee5\u4f9b\u65f6\u5e38\u7ffb\u9605\u3002<\/p>\n<h2><a name=\"t5\"><\/a>\u76f8\u89c1\u6068\u665a<\/h2>\n<p>\u90a3\u4e48\u600e\u4e48\u624d\u80fd\u627e\u5230 stackoverflow \u5462\uff0c\u4e24\u4e2a\u5efa\u8bae\uff1a<\/p>\n<ul>\n<li>\u82f1\u8bed\u7cbe\u786e\u63cf\u8ff0\u95ee\u9898<\/li>\n<li>\u7528 Google \u53bb\u641c\u7d22<\/li>\n<\/ul>\n<p>\u53ea\u8981\u4f60\u4e0d\u662f\u7b2c\u4e00\u4e2a\u9047\u89c1\u67d0\u4e2a\u6280\u672f\u95ee\u9898\u7684\u4eba\uff0c\u4f60\u57fa\u672c\u5c31\u4f1a\u5728 stackoverflow \u627e\u5230\u76f8\u540c\u6216\u8005\u7c7b\u4f3c\u7684\u95ee\u9898\u3002\u65e9\u65e5\u9047\u89c1\uff0c\u65e9\u65e5\u559c\u6b22\u4e0a stackoverflow\uff0c\u4f60\u4f1a\u53d1\u73b0\u751f\u6d3b\u662f\u5982\u6b64\u60ec\u610f\u3002<\/p>\n<p>\u8f6c\u81ea\u00a0https:\/\/blog.csdn.net\/weixin_38233274\/article\/details\/80349534<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5f53\u4f60\u62cb\u51fa\u4e00\u4e2a\u6280\u672f\u95ee\u9898\u65f6\uff0c\u6700\u7ec8\u662f\u5426\u80fd\u5f97\u5230\u6709\u7528\u7684\u56de\u7b54\uff0c\u5f80\u5f80\u53d6\u51b3\u4e8e\u4f60\u6240\u63d0\u95ee\u548c\u8ffd\u95ee\u7684\u65b9\u5f0f\u3002 \u2014\u2014 Eric S. Ra [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[22],"class_list":["post-218","post","type-post","status-publish","format-standard","hentry","tag-projk"],"_links":{"self":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/218","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=218"}],"version-history":[{"count":0,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=\/wp\/v2\/posts\/218\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=218"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=218"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.tongyunli.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=218"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}