{"id":233272,"date":"2020-12-29T11:08:32","date_gmt":"2020-12-29T03:08:32","guid":{"rendered":"http:\/\/4563.org\/?p=233272"},"modified":"2020-12-29T11:08:32","modified_gmt":"2020-12-29T03:08:32","slug":"%e6%83%b3%e8%a6%81%e8%bf%bd%e8%b8%aa%e4%b8%80%e4%b8%aa%e6%ad%a3%e5%9c%a8%e8%bf%90%e8%a1%8c%e7%9a%84-python-%e8%bf%9b%e7%a8%8b%e9%87%8c%e9%9d%a2%e7%9a%84%e5%87%bd%e6%95%b0%e8%b0%83%e7%94%a8%e5%8f%8a","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=233272","title":{"rendered":"\u60f3\u8981\u8ffd\u8e2a\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684 Python \u8fdb\u7a0b\u91cc\u9762\u7684\u51fd\u6570\u8c03\u7528\u53ca\u4ee3\u7801\u6267\u884c\u60c5\u51b5"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u60f3\u8981\u8ffd\u8e2a\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684 Python \u8fdb\u7a0b\u91cc\u9762\u7684\u51fd\u6570\u8c03\u7528\u53ca\u4ee3\u7801\u6267\u884c\u60c5\u51b5               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : fuckyoudolphin <\/span>  <span><i><\/i> 10<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u9700\u6c42\u6709\u70b9\u50cf\u7cbe\u51c6\u6d4b\u8bd5 \u4f46\u6ca1\u529e\u6cd5\u5728 build \u7684\u65f6\u5019\u63d2\u6869<\/p>\n<p>\u60f3\u8ffd\u8e2a\u8fd9\u4e2a\u5df2\u7ecf\u8fd0\u884c\u8d77\u6765\u7684\u8fdb\u7a0b \u67d0\u6bb5\u65f6\u95f4\u7684\u4ee3\u7801\u8fd0\u884c\u60c5\u51b5\uff0c\u6267\u884c\u4e86\u54ea\u4e9b\u884c \u54ea\u4e9b\u65b9\u6cd5 <\/p>\n<p>\u6c42\u6559 \u6709\u4ec0\u4e48\u597d\u7684\u529e\u6cd5\u5417<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>9<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4631049\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ysc3839 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65b9\u6cd5\u4e0d\u77e5\u9053\uff0c\u6211\u53ea\u77e5\u9053 Visual Studio \u53ef\u4ee5\u76f4\u63a5\u8c03\u8bd5\u4e00\u4e2a\u5916\u90e8\u7684 Python \u8fdb\u7a0b\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631050\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : charexcalibur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bd5\u8bd5 https:\/\/github.com\/benfred\/py-spy                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631051\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : caiji11 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             VizTracer \u8bd5\u8bd5\u8fd9\u4e2a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631052\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : zhangkunkyle <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             pysnooper                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631053\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : fuckyoudolphin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @charexcalibur \u8c22\u8c22\uff0c\u4f46\u662f\u8fd9\u4e2a pyspy \u8c8c\u4f3c\u662f\u5bf9\u5e27\u53d6\u6837 \u5b9e\u73b0\u4e0d\u4e86\u5bf9\u6267\u884c\u7684\u6bcf\u4e00\u884c\u4ee3\u7801\u7684\u76d1\u63a7                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631054\" 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>                                                             \u4ee3\u7801\u6253\u6869\uff0c \u4e00\u822c\u7528\u6765\u505a\u6d4b\u8bd5\u4ee3\u7801\u8986\u76d6\u7387\u7528\u7684\u3002 \u7ed9\u4e00\u4e2a\u6d4b\u8bd5\u7248\u7f16\u8bd1\u7684\u65f6\u5019\u5728\u6240\u6709\u7684\u5206\u652f\u90fd\u6253\u4e0a\u6869 \u8dd1\u5b8c\u6240\u6709\u7684\u6d4b\u8bd5\uff0c \u7edf\u8ba1\u89e6\u53d1\u4e86\u591a\u5c11\u6869\u3002\u5e94\u8be5\u662f\u5728\u751f\u6210 AST \u7684\u65f6\u5019\u52a0\u6869\u7684\uff0c \u7136\u540e\u518d\u8dd1\u3002\u89e3\u91ca\u6027\u7684\u8bed\u8a00\u4f60\u53ef\u4ee5\u5148\u751f\u6210 AST \u7684\u65f6\u5019\u52a0\u6869\uff0c\u7136\u540e\u518d\u628a\u52a0\u6869\u4ee5\u540e\u7684 AST \u8f6c\u6210 py. \u518d\u8dd1                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631055\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lc1450 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6700\u8fd1\u4e5f\u9047\u5230\u7c7b\u4f3c\u95ee\u9898,\u5b9a\u65f6\u4efb\u52a1\u5361\u4e86\u597d\u51e0\u5929,\u6b63\u5e38\u60c5\u51b5\u5e94\u8be5\u51e0\u5c0f\u65f6\u5c31\u5b8c\u6210<br \/> strace -p \u80fd\u770b\u5230\u5361\u5728 futex \u7cfb\u7edf\u8c03\u7528, \u4f46\u5177\u4f53\u5361\u5728 python \u4ee3\u7801\u4ec0\u4e48\u5730\u65b9\u770b\u4e0d\u5230, \u8fd9\u79cd\u573a\u666f\u7528\u4ec0\u4e48\u5de5\u5177\u6765\u770b?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631056\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : alvie <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             https:\/\/opentracing.io\/guides\/python\/tracers\/<\/p>\n<p>https:\/\/opencensus.io\/tracing\/                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4631057\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : todd7zhang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ce8\u518c signal ? \u63a5\u53d7\u4fe1\u53f7\uff0c\u7136\u540e sys._current_frames().items()\u62ff\u5230 stack, \u518d traceback.extract_stack(stack) \u62ff\u5230<br \/>filename, lineno, name, line                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u60f3\u8981\u8ffd\u8e2a\u4e00\u4e2a\u6b63\u5728\u8fd0\u884c\u7684 Pytho&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\/233272"}],"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=233272"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/233272\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=233272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=233272"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=233272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}