{"id":155458,"date":"2020-09-01T08:07:52","date_gmt":"2020-09-01T00:07:52","guid":{"rendered":"http:\/\/4563.org\/?p=155458"},"modified":"2020-09-01T08:07:52","modified_gmt":"2020-09-01T00:07:52","slug":"ipython-%e4%ba%a4%e4%ba%92%e5%8f%98%e6%88%90%e5%92%8c-python-%e4%ba%a4%e4%ba%92%e5%8f%98%e6%88%90%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=155458","title":{"rendered":"ipython \u4ea4\u4e92\u53d8\u6210\u548c Python \u4ea4\u4e92\u53d8\u6210\u6709\u4ec0\u4e48\u4e0d\u540c"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  ipython \u4ea4\u4e92\u53d8\u6210\u548c Python \u4ea4\u4e92\u53d8\u6210\u6709\u4ec0\u4e48\u4e0d\u540c               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Hlianbobo <\/span>  <span><i><\/i> 5<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\">                        \u770b\u4e86\u7f51\u4e0a\u4e00\u4e9b\u6587\u7ae0\u4ecb\u7ecd ipython \u6700\u5927\u7684\u7279\u70b9\u662f\u652f\u6301\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u3002\u53c8\u8bf4\u4ee5 ipython \u4e3a\u57fa\u7840\u7684 jupyter \u4ea4\u4e92\u5f0f\u7f16\u7a0b\u591a\u4e48\u65b9\u4fbf\u3002\u6211\u4e00\u76f4\u4e0d\u592a\u660e\u767d\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u7684\u542b\u4e49\u3002\u770b\u4e86\u51e0\u4e2a\u89c6\u9891\u3002\u597d\u50cf\u5c31\u662f \u5199\u4e2a print \u76f4\u63a5\u51fa\u7ed3\u679c\u3002\u5199\u8fc7 x=1+1\uff0cprint \u4e00\u4e0b\u5c31\u73b0\u5b9e 2 \u3002\u611f\u89c9\u8fd9\u4e9b python \u90fd\u53ef\u4ee5\u5b9e\u73b0\u554a\u3002\u90a3 ipython \u7a76\u7adf\u6709\u4ec0\u4e48\u662f python \u9ed8\u8ba4\u73af\u5883\u505a\u4e0d\u4e86\u6216\u505a\u4e0d\u597d\u7684\u529f\u80fd\uff1f\u6216\u8005\u6211\u5bf9\u4ea4\u4e92\u5f0f\u7f16\u7a0b\u6709\u8bef\u89e3\uff1f      <\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>11<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3293126\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wzwwzw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ipython \u4e00\u4e9b\u9ad8\u4eae\u8fd8\u6709\u8fd8\u6709\u4e00\u4e9b\u63d0\u793a\u4e0a\u4f1a\u6bd4\u8f83\u53cb\u597d\uff0c\u8fd8\u6709\u8c03\u7528\u7cfb\u7edf shell\uff0c\u5386\u53f2\u8bb0\u5f55\u3002<br \/>\u4ea4\u4e92\u5f0f\u53d8\u6210\u4e0e \u76f4\u63a5\u8fd0\u884c python \u811a\u672c\uff0c\u800c\u8a00\uff0c\u4ea4\u4e92\u5f0f\u4f1a\u4fdd\u5b58\u4e00\u4e9b\u73af\u5883\u53d8\u91cf\u3002\u5728 pandas numpy \u8fd9\u79cd\u573a\u666f\u7279\u522b\u5408\u9002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293127\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : black11black <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             jupyter \u53ef\u4ee5\u4fdd\u5b58\u548c\u6062\u590d\u5185\u5b58\u72b6\u6001\uff0c\u4f8b\u5982\u5728\u5206\u522b\u6709\u4e09\u6761\u987a\u5e8f\u6267\u884c\u547d\u4ee4 1 \u30012 \u30013 \u7684\u60c5\u51b5\u4e0b\uff0c\u53ef\u4ee5\u5355\u72ec\u4fee\u6539 2 \u53f7\u547d\u4ee4\uff0c\u5f71\u54cd 2 \u548c 3\uff0c\u800c\u4e0d\u7528\u91cd\u65b0\u89e3\u91ca 1 \u53f7\u547d\u4ee4\u3002\u5bf9\u4e8e\u5355\u4e2a\u4ee3\u7801\u6bb5\u5360\u7528\u5927\u91cf CPU \u8ba1\u7b97\u65f6\u95f4\u548c\u5185\u5b58\u7684\u4efb\u52a1\u5f88\u6709\u6548\uff0c\u6240\u4ee5\u867d\u7136 jupyter \u4f5c\u4e3a\u7f16\u8f91\u5668\u4e0d\u592a\u597d\u7528\uff0c\u4f46\u662f\u673a\u5668\u5b66\u4e60\u5f88\u591a\u4eba\u63a8\u8350\u4f7f\u7528                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293128\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : dlsflh <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u505a\u8bd5\u9a8c\u8c03\u53c2\u6570\u505a\u79d1\u5b66\u8ba1\u7b97\u7528\u8fd9\u4e2a\u592a\u65b9\u4fbf\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293129\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : aloxaf <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e2a\u4ecb\u7ecd\u6709\u95ee\u9898\uff0cipython \u6700\u5927\u7684\u7279\u70b9\u662f\u652f\u6301\u4ea4\u4e92\u5f0f\u7f16\u7a0b\uff0c\u5c31\u8ddf\u8bf4 Python \u6700\u5927\u7684\u7279\u70b9\u662f\u652f\u6301\u89e3\u91ca\u8fd0\u884c\u4e00\u6837\u2026\u2026                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293130\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Hlianbobo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @black11black \u5173\u4e8e 123 \u547d\u4ee4\u7684\u65b9\u4fbf\u4e4b\u5904\u53ef\u5426\u4e3e\u4e2a\u7b80\u5355\u7684\u4f8b\u5b50\u3002<br \/>\u53e6\uff0c\u8fd9\u79cd\u4fbf\u6377\u6027\uff0cSpyder \u5177\u5907\u4e48\u3002Spyder \u4e5f\u662f\u57fa\u4e8e ipython \u7684\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293131\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : sean10 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @Hlianbobo \u6bd4\u5982\u4f60\u8981\u52a0\u8f7d\u4e00\u4e2a\u5f88\u5927\u7684\u6a21\u578b\uff0c\u6216\u8005\u5728 1 \u91cc\u505a\u4e86\u4e00\u4e2a\u6bd4\u8f83\u8017\u65f6\u7684\u64cd\u4f5c\uff0c\u4f60\u6539 2 \u5b8c\u5168\u4e0d\u9700\u8981\u518d\u91cd\u65b0\u6267\u884c 1 \u90a3\u90e8\u5206                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293132\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : Hlianbobo <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @sean10 \u8fd9\u4e2a\u4e0a\u5df2\u7ecf\u6709\u4eba\u8bf4\u4e86\uff0c\u4e0d\u77e5\u53ef\u5426\u7ed9\u4e2a\u5177\u4f53\u7684\u4f8b\u5b50                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293133\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : PTLin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u611f\u89c9 IPython \u90a3\u4e00\u5957\u4e1c\u897f\u5c31\u662f\u8ba9 Python \u53ef\u4ee5\u52c9\u5f3a\u8fbe\u5230 Mathematica \u7684\u6548\u679c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293134\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : silkriver <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u4ee5\u770b\u4e0b\u8fd9\u7bc7\u6587\u7ae0 https:\/\/www.jianshu.com\/p\/bfa418357f6f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293135\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : wuwukai007 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ipython \u7684 \u2191 \uff0c\u53ef\u4ee5\u8fd4\u56de\u5386\u53f2\u8bb0\u5f55\uff0c\u6bd4\u5982 con = pymysql.conect(xxx),\u4f60\u53ea\u8981\u6253 con + \u2191\uff0c\u76f4\u63a5\u8fd4\u56de\u5386\u53f2\u8bb0\u5f55                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3293136\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leyle <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             bpython \u611f\u89c9\u4e5f\u5f88\u597d\u7528\u3002<br \/>Home &#8211; bpython<br \/>https:\/\/bpython-interpreter.org\/                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>ipython \u4ea4\u4e92\u53d8\u6210\u548c Pyt&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\/155458"}],"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=155458"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/155458\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=155458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=155458"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=155458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}