{"id":664,"date":"2021-11-15T01:12:00","date_gmt":"2021-11-15T01:12:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=664"},"modified":"2021-11-15T01:12:00","modified_gmt":"2021-11-15T01:12:00","slug":"664","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/11\/15\/664\/","title":{"rendered":"\u7ed9VSCode\u7ec8\u7aef\u4e00\u70b9\u989c\u8272\u770b\u770b: Python \u89e3\u91ca\u5668\u4ea4\u4e92\u6a21\u5f0f\u67e5\u770b\u6574\u4e2a\u547d\u4ee4\u5386\u53f2"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/11\/842700694.webp\" alt=\"vscode.webp\" title=\"vscode.webp\"><\/p>\n<h2>Python \u81ea\u52a8\u8865\u5168\u6a21\u5757 readline \u89e3\u6790<\/h2>\n<p>readline\u6a21\u5757\u5b9a\u4e49\u4e86\u4e00\u7cfb\u5217\u51fd\u6570\u7528\u6765\u8bfb\u5199Python\u89e3\u91ca\u5668\u4e2d\u5386\u53f2\u547d\u4ee4\uff0c\u5e76\u63d0\u4f9b\u81ea\u52a8\u8865\u5168\u547d\u4ee4\u529f\u80fd\u3002\u8fd9\u4e2a\u6a21\u5757\u53ef\u4ee5\u901a\u8fc7relcompleter\u6a21\u5757\u76f4\u63a5\u8c03\u7528\uff0c\u6a21\u5757\u4e2d\u7684\u8bbe\u7f6e\u4f1a\u5f71\u54cd\u89e3\u91ca\u5668\u4e2d\u7684\u4ea4\u4e92\u63d0\u793a\uff0c\u4ee5\u53ca\u5185\u7f6e\u51fd\u6570raw_input()\u548cinput()\u63d0\u4f9b\u7684\u63d0\u793a\u3002<br \/>readline\u6a21\u5757\u5b9a\u4e49\u4e86\u4ee5\u4e0b\u65b9\u6cd5\uff1a \u8f93\u5165 readline. \u7136\u540e\u6309 TAB \u5c31\u80fd\u81ea\u52a8\u8865\u5168\u663e\u793a<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/11\/2172231727.gif\" alt=\"GIF.gif\" title=\"GIF.gif\"><\/p>\n<h2>python windows \u5b89\u88c5 readline \u6a21\u5757<\/h2>\n<pre><code>python -m pip install pyreadline\n# \u4e0d\u80fd\u76f4\u63a5\u7528pip install pyreadline<\/code><\/pre>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/11\/2036123219.png\" alt=\"h.png\" title=\"h.png\"><\/p>\n<h2>Python \u4ea4\u4e92\u6a21\u5f0f \u5386\u53f2\u547d\u4ee4\u3001\u6e05\u5c4f\u548c\u8c03\u7528Shell\u6a21\u5757<\/h2>\n<ul>\n<li>\n<p>\u6e90\u7801: <a href=\"https:\/\/git.io\/me.py\">git.io\/me.py<\/a><\/p>\n<pre><code>:: Usage:  python -i me.py     or [import me] , import the module me.py\n:: Function:  cls()  ls()  cd(path)  cat(file)  pwd()  bash()  info()  history()<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Python \u81ea\u52a8\u8865\u5168\u6a21\u5757 readline \u89e3\u6790 readline\u6a21\u5757\u5b9a\u4e49\u4e86\u4e00\u7cfb\u5217\u51fd\u6570\u7528\u6765\u8bfb\u5199Py [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[45,50],"class_list":["post-664","post","type-post","status-publish","format-standard","hentry","category-learn","tag-python","tag-vscode"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=664"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/664\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}