{"id":192928,"date":"2020-11-15T18:27:56","date_gmt":"2020-11-15T10:27:56","guid":{"rendered":"http:\/\/4563.org\/?p=192928"},"modified":"2020-11-15T18:27:56","modified_gmt":"2020-11-15T10:27:56","slug":"%e6%9c%89%e5%85%b3%e4%ba%8e-python-%e6%89%a7%e8%a1%8c%e7%b3%bb%e7%bb%9f%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=192928","title":{"rendered":"\u6709\u5173\u4e8e Python \u6267\u884c\u7cfb\u7edf\u547d\u4ee4"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6709\u5173\u4e8e Python \u6267\u884c\u7cfb\u7edf\u547d\u4ee4               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : proxytoworld <\/span>  <span><i><\/i> 2<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<ol>\n<li>\n<p>python \u6267\u884c\u7cfb\u7edf\u547d\u4ee4\uff0c\u5e38\u7528 os.popen \u6216\u8005 os.system\uff0c\u4f46\u662f\u5982\u679c\u6267\u884c\u7684\u547d\u4ee4\u7c7b\u4f3c\u4e8e\u767b\u5f55\u6bd4\u5982 mysql -uroot -p \u6216\u8005 ssh [email&#160;protected] \u8fd9\u79cd\uff0c\u9700\u8981\u6267\u884c\u7cfb\u7edf\u547d\u4ee4\u4e4b\u540e\u5199\u5165\u7684\u5e94\u8be5\u600e\u4e48\u505a\u554a<\/p>\n<\/li>\n<li>\n<p>\u9700\u8981\u8f93\u5165\u5f88\u591a\u6b21\u76f4\u5230\u547d\u4ee4\u56de\u663e\u7279\u5b9a\u5b57\u7b26\u4e32\u624d\u7ed3\u675f\uff0c\u8f93\u5165\u6b21\u6570\u4e0d\u9650<\/p>\n<\/li>\n<\/ol><\/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=\"4104226\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : DAPTX4869 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5f88\u4e45\u4e4b\u524d\u8bd5\u8fc7, \u7528\u7684 paramiko                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104227\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ciaran <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6709\u4e00\u4e2a except \u547d\u4ee4\uff0c\u80fd\u7528\u4f46\u662f\u4e0d\u7b97\u5f88\u597d\u7528\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104228\" 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>                                                             \u770b\u76ee\u6807\u7a0b\u5e8f\uff0c\u4f7f\u7528\u7ba1\u9053\u6216\u8005 Pseudo TTY \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104229\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CallMeReznov <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             paramiko netmiko                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104230\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u64cd\u4f5c\u5b50\u8fdb\u7a0b\u7684\u4e00\u822c\u90fd\u662f subprocess.Popen<\/p>\n<p>\u53ef\u4ee5\u7528 communicate \u5bf9 stdin stdout stderr \u8fdb\u884c\u8bfb\u5199\u64cd\u4f5c                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104231\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ClericPy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8bdd\u8bf4 ssh \u53ef\u4ee5\u76f4\u63a5\u634e\u5e26\u547d\u4ee4\u7684, \u6211\u5c31\u7ecf\u5e38\u90a3\u4e48\u7528&#8230; \u7a0d\u5fae\u590d\u6742\u70b9\u7684\u53ef\u4ee5 fabric, \u518d\u590d\u6742\u70b9\u7684 ansible<\/p>\n<p>\u81f3\u4e8e mysql, \u76f4\u63a5\u8c03\u7528 pymysql \u4e5f\u884c\u5427, \u9700\u8981\u5185\u7f51\u6302 ssh \u96a7\u9053\u7684\u4e5f\u80fd\u652f\u6301\u4e0a                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104232\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Jirajine <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u5efa\u8bae\u8fd9\u4e48\u641e\uff0c\u8fd9\u79cd\u64cd\u4f5c interactive ui\uff0c\u548c\u64cd\u4f5c gui \u7684\u9ebb\u70e6\u7a0b\u5ea6\u4e5f\u5dee\u4e0d\u591a\u4e86\u3002<br \/>\u5199\u4ee3\u7801\u4e0d\u8981\u64cd\u4f5c ui\uff0c\u800c\u662f\u8c03\u7528\u5bf9\u5e94\u7684 api \u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4104233\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : beastk <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5efa\u8bae\u8fd8\u662f\u8c03\u6a21\u5757\u5427\uff0c\u6bd4\u5982 pymqsql \u8fd9\u4e9b\uff0c\u4ea4\u4e92 shell \u8fd8\u662f\u6bd4\u8f83\u9ebb\u70e6\u7684                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u5173\u4e8e Python \u6267\u884c\u7cfb\u7edf\u547d\u4ee4&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\/192928"}],"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=192928"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/192928\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=192928"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=192928"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=192928"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}