{"id":210530,"date":"2020-11-30T12:04:54","date_gmt":"2020-11-30T04:04:54","guid":{"rendered":"http:\/\/4563.org\/?p=210530"},"modified":"2020-11-30T12:04:54","modified_gmt":"2020-11-30T04:04:54","slug":"python-%e8%af%bb%e5%86%99%e5%85%b1%e4%ba%ab%e5%86%85%e5%ad%98%e6%9c%89%e4%bb%80%e4%b9%88%e4%bc%98%e5%8c%96%e6%96%b9%e6%a1%88%e6%b2%a1%e6%9c%89","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=210530","title":{"rendered":"Python \u8bfb\u5199\u5171\u4eab\u5185\u5b58\u6709\u4ec0\u4e48\u4f18\u5316\u65b9\u6848\u6ca1\u6709"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Python \u8bfb\u5199\u5171\u4eab\u5185\u5b58\u6709\u4ec0\u4e48\u4f18\u5316\u65b9\u6848\u6ca1\u6709               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Go1denwind <\/span>  <span><i><\/i> 0<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u73b0\u5728\u7684\u573a\u666f\u662f<br \/>\u591a\u4e2a\u8fdb\u7a0b \/\u7ebf\u7a0b\u53bb sql \u67e5\u8be2 \u7136\u540e\u5c06\u67e5\u8be2\u7684\u7ed3\u679c\u5199\u5171\u4eab\u5185\u5b58\u7ed9\u5230\u53e6\u4e00\u4e2a\u4ee3\u7801\u8fdb\u7a0b(\u79f0\u4e3a\u4e3b\u8fdb\u7a0b\u5427)<br \/>\u73b0\u5728\u95ee\u9898\u51fa\u5728<br \/>\u5404\u4e2a\u7ebf\u7a0b\u5199\u7ed9\u4e3b\u8fdb\u7a0b\u6027\u80fd\u582a\u5fe7      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>8<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4367515\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Go1denwind <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5982\u679c\u7ebf\u7a0b\u7684\u4ee3\u7801\u7528 C \u5199 \u6216\u8005\u534f\u7a0b\u8fd9\u7c7b\u66ff\u6362\u7ebf\u7a0b\u7684\u65b9\u5f0f \u4f1a\u4e0d\u4f1a\u6709\u4ec0\u4e48\u660e\u663e\u7684\u63d0\u5347<br \/>\u80fd\u5b9a\u4f4d\u95ee\u9898\u662f\u5728\u4e3b\u7ebf\u7a0b\u6574\u5408\u5404\u4e2a\u7ebf\u7a0b\u7684\u6570\u636e\u4e0a\u8017\u65f6\u6bd4\u8f83\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367516\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : NaVient <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6362 golang                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367517\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hasdream <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u67e5\u8be2 SQL,\u4e0d\u6d89\u53ca\u5bc6\u96c6\u8ba1\u7b97\u591a\u7ebf\u7a0b\u5c31\u53ef\u4ee5\uff0c \u5982\u679c\u662f\u6839\u636e\u67e5\u8be2\u7684\u7ed3\u679c\u8fdb\u884c\u8ba1\u7b97\uff0c\u90a3\u591a\u8fdb\u7a0b mutiprocessing \u8fd9\u4e2a\u6a21\u5757\u6709\u4e2a Queue \u53ef\u4ee5\u8fdb\u884c\u8fdb\u7a0b\u901a\u4fe1 \u53ea\u80fd\u4f20\u8f93\u57fa\u672c\u7c7b\u578b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367518\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Go1denwind <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hasdream \u54e6\u8865\u5145\u4e0b \u67e5\u51fa\u6765\u7684\u7ed3\u679c\u8981\u8fdb\u884c\u4e00\u4e9b\u8ba1\u7b97\u7684<br \/>multiprocessing.Queue \u597d\u50cf\u4e0d\u652f\u6301\u4e0d\u540c\u8fdb\u7a0b\u95f4\u901a\u8baf \u800c\u4e14\u4f30\u8ba1\u901f\u5ea6\u4e5f\u548c\u8fd9\u6837\u5dee\u4e0d\u591a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367519\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Go1denwind <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @NaVient \u8f6c\u884c\u4e86\u8f6c\u884c\u4e86 \/cry                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367520\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : laminux29 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Go1denwind \u4e0d\u770b\u6587\u6863\u561b\uff1f<\/p>\n<p>\u4eba\u5bb6 Queue \u5c31\u662f\u7528\u6765\u505a\u591a\u7ebf\u7a0b\u540c\u6b65\u7684\u3002<\/p>\n<p>\u4f60\u8fd9\u79cd\u9700\u6c42\uff0c\u6b63\u786e\u7684\u64cd\u4f5c\u662f\uff0c\u591a\u7ebf\u7a0b\u83b7\u53d6\u6570\u636e\u540e\uff0c\u901a\u8fc7 Queue \u53d1\u9001\u7ed9\u4e3b\u7ebf\u7a0b\u3002\u4e0d\u7136\u4f60\u4e3b\u7ebf\u7a0b\u8fd8\u8981\u7b49\u6bcf\u4e2a\u5b50\u7ebf\u7a0b\u5199\u6570\u636e\uff0c\u8fd9\u79cd\u64cd\u4f5c\u65b9\u5f0f\u672c\u8d28\u662f\u4e32\u884c\u5316\uff0c\u6ca1\u529e\u6cd5\u5b8c\u5168\u5229\u7528\u786c\u4ef6\uff0c\u901f\u5ea6\u5f53\u7136\u6162\u3002<\/p>\n<p>https:\/\/docs.python.org\/3\/library\/queue.html                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367521\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hasdream <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Go1denwind multiprocessing.Queue \u57fa\u4e8e multiprocessing.Process \u521b\u5efa\u7684\u8fdb\u7a0b\u901a\u4fe1\u662f\u6ca1\u95ee\u9898\u7684\u3002 \u5982\u679c\u4f60\u89c9\u5f97\u4e0d\u9760\u8c31 \u90a3\u5c31 fork \u591a\u4e2a\u8fdb\u7a0b \u4e3b\u8fdb\u7a0b\u521b\u5efa\u591a\u4e2a PIPE \u8fdb\u884c\u901a\u4fe1\u4e5f\u884c                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4367522\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jones2000 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5199\u5171\u4eab\u5185\u5b58\u548c\u8bfb\u53d6\u5e94\u8be5\u5f88\u5feb\u7684\uff0c \u6bcf\u4e2a\u7ebf\u7a0b\u6216\u8fdb\u7a0b\u5199\u5355\u72ec\u7684\u4e00\u5757\u5185\u5b58\u5730\u5740\uff0c \u5199\u5b8c\u53d1\u9001\u4e8b\u4ef6\u6d88\u606f\u7ed9\u4e3b\u8fdb\u7a0b\uff0c \u4e3b\u8fdb\u7a0b\u5c31\u8bfb\u5bf9\u5e94\u5730\u5740\u7684\u5185\u5b58\u5757\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Python \u8bfb\u5199\u5171\u4eab\u5185\u5b58\u6709\u4ec0\u4e48\u4f18&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/210530"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210530"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/210530\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210530"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}