{"id":96473,"date":"2020-04-18T15:59:46","date_gmt":"2020-04-18T07:59:46","guid":{"rendered":"http:\/\/4563.org\/?p=96473"},"modified":"2020-04-18T15:59:46","modified_gmt":"2020-04-18T07:59:46","slug":"%e6%b1%82%e6%95%99-vscode-%e6%9c%89%e6%b2%a1%e5%8a%9e%e6%b3%95%e6%98%be%e7%a4%ba%e4%be%9d%e8%b5%96%e5%ba%93%e7%9a%84%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=96473","title":{"rendered":"\u6c42\u6559 vscode \u6709\u6ca1\u529e\u6cd5\u663e\u793a\u4f9d\u8d56\u5e93\u7684\u4ee3\u7801"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u6c42\u6559 vscode \u6709\u6ca1\u529e\u6cd5\u663e\u793a\u4f9d\u8d56\u5e93\u7684\u4ee3\u7801               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : midtin <\/span>  <span><i><\/i> 62<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u5c31\u50cf PyCharm \u90a3\u6837\uff0c\u6211\u53ef\u4ee5\u6253\u5f00\u73af\u5883\u4e2d\u7684 Python \u4f9d\u8d56\u5e93\u4ee3\u7801\u8fdb\u884c\u6d4f\u89c8\u67e5\u770b\uff0cgoogle \u4e86\u5f88\u4e45\u4e5f\u6ca1\u627e\u5230\u76f8\u5173\u7684\u65b9\u6cd5\u6216\u8005\u6269\u5c55<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"869737\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 2wex <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u5728\u8bbe\u7f6e\u91cc python.path \u586b\u4e0a python \u7684\u8def\u5f84\uff0c\u91cd\u542f\u4e4b\u540e\u5c31\u53ef\u4ee5\u6109\u5feb\u5730 F12 \u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869738\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : midtin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @2wex \u7528\u7684\u662f\u865a\u62df\u73af\u5883\uff0c\u8fd9\u4e2a\u6709\u4f5c\u7528\u4e48\uff0c\u8fd8\u662f\u8bf4\u6bcf\u4e2a\u90fd\u8981\u6307\u5b9a\u4e00\u6b21\uff1f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869739\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : midtin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @2wex \u53ef\u80fd\u63cf\u8ff0\u5f97\u4e0d\u591f\u6e05\u695a\uff0c\u6211\u60f3\u8981\u7684\u4e0d\u662f\u4ee3\u7801\u8df3\u8f6c\uff0c\u800c\u662f\u50cf Pycharm \u90a3\u6837\u80fd\u591f\u76f4\u63a5\u663e\u793a\u73af\u5883\u4e2d\u7684\u5916\u90e8\u4f9d\u8d56\u7684\u6587\u4ef6\u76ee\u5f55\u6811                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869740\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hedamao9999 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u524d\u7aef\uff1f\u663e\u793a nodemodules \u6811\u6ca1\u5565\u610f\u601d\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869741\" 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>                                                             \u5982\u679c\u4f60\u662f\u7528\u7c7b\u4f3c\u4e8e\u8fd9\u79cd\u8bed\u6cd5 <br \/>&#8221;&#8217;<br \/>import sys ,time ,os<br \/>&#8221;&#8217;<br \/>vscode \u662f\u65e0\u6cd5\u67e5\u770b\u540e\u4e24\u4e2a\u5305\u7684\u5f15\u7528\u7684<br \/>\u4f60\u5fc5\u987b<br \/>&#8221;&#8217;<br \/>import sys<br \/>import time<br \/>import os<br \/>&#8221;&#8217;<\/p>\n<p>\u8fd9\u6837\u624d\u53ef\u4ee5,\u6211\u4e2a\u4eba\u662f\u8fd9\u6837\u7528\u7684,\u5177\u4f53\u539f\u7406\u548c\u4e3a\u4ec0\u4e48\u4e0d\u77e5.                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869742\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : midtin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @hedamao9999 \u540e\u7aef Python\uff0c\u56e0\u4e3a\u6211\u6709\u65f6\u4f1a\u76f4\u63a5\u53bb\u770b\u4f9d\u8d56\u5e93\u7684\u4ee3\u7801\u800c\u4e0d\u662f\u901a\u8fc7\u4ee3\u7801\u5f15\u7528\u8df3\u8f6c\u5230\u6e90\u7801\u6765\u770b                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869743\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : midtin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @CallMeReznov \u60f3\u8981\u7684\u8fd9\u79cd\u6548\u679c https:\/\/upload.cc\/i1\/2020\/01\/22\/tuKmC5.png                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869744\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : shiran3f <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u6811\u4e0d\u662f\u4f9d\u8d56\u5427\uff1f\u53ea\u662f\u5355\u7eaf\u7684\u4f60\u672c\u5730\u6216\u8005\u6307\u5b9a\u7684 python \u53ef\u6267\u884c\u8def\u5f84\u5173\u8054\u7684\u5305\u800c\u5df2\uff0c\u91cc\u9762\u7684\u5305\u53ef\u80fd\u662f\u7f3a\u7684\u4e5f\u53ef\u80fd\u662f\u591a\u4f59\u7684\u3002\u5982\u679c\u662f\u8fd9\u6837\u7684\u8bdd\uff0c\u5e94\u8be5\u627e\u4f60\u6307\u5b9a python \u7248\u672c\u8def\u5f84\u4e0b\u5df2\u5b89\u88c5\u5305\u7684\u73b0\u5b9e\u800c\u5df2\uff0c\u4e0d\u77e5\u9053\u6709\u6ca1\u6709\u8fd9\u6837\u7684\u63d2\u4ef6\uff0c\u505a\u8d77\u6765\u5e94\u8be5\u4e0d\u96be\uff0c\u53ea\u662f\u663e\u793a\u6587\u4ef6\u6811\u800c\u5df2\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869745\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u4e2a\u6743\u5b9c\u4e4b\u8ba1\uff08 workaround \uff09\uff1a\u5185\u7f6e venv \u6216\u8005 \u7b26\u53f7\u94fe\u63a5<\/p>\n<p>\u53ef\u4ee5\u5728\u63d2\u4ef6\u5e02\u573a\u627e\u4e0b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869746\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : no1xsyzy <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e00\u4e2a \u201c\u534a\u89e3\u51b3\u65b9\u6848\u201d\uff08 half solution \uff09\uff1a\u5728\u5de6\u4fa7\u76ee\u5f55\u6811\u91cc\u53ef\u4ee5 Add folder to Workspace\uff0c\u4f1a\u628a\u5f53\u524d\u7684 folder = workspace \u7684\u72b6\u6001\u8f6c\u5316\u4e3a\u5b58\u50a8\u5728 ~ \u4e0b\u7684 workspace \u91cc\u3002<\/p>\n<p>\u63d2\u4ef6\u5e02\u573a\u539f\u6837\u641c\u7d22 \u201cexternal libraries\u201d\uff0c\u627e\u5230\u8fd9\u4e2a\uff1a<br \/>https:\/\/marketplace.visualstudio.com\/items?itemName=dannielarriola.extlibraries<br \/>\u770b\u4e86\u4e0b\u662f\u7528\u7b26\u53f7\u94fe\u63a5\u7684\u3002\u800c Windows \u4e0b\u7b26\u53f7\u94fe\u63a5\u9700\u8981\u63d0\u6743\uff0c\u6240\u4ee5\u4f5c\u4e3a VSCode \u63d2\u4ef6\u4e0d\u5408\u9002\uff0c\u4e0d\u5982\u5728 terminal \u91cc elevate mklink \u751a\u81f3 junction                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869747\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : midtin <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @no1xsyzy \u611f\u8c22\uff0c\u8fd9\u4e2a\u65b9\u6cd5\u5df2\u7ecf\u80fd\u6ee1\u8db3\u6211\u5927\u90e8\u5206\u7684\u9700\u6c42\u4e86\uff0c\u867d\u7136\u7684\u786e\u8fd8\u4e0d\u662f\u5f88\u4fbf\u5229\uff0c\u9700\u8981\u624b\u52a8\u5f80 .gitnore \u6392\u9664\u6389\u8fd9\u4e2a symbolic link \u907f\u514d\u8bef\u63d0\u4ea4\u5230\u9879\u76ee\u3002\u6211\u7528\u7684 Mac OS \u6240\u4ee5\u8fd8\u597d                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"869748\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : SmiteChow <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u7f16\u8f91\u5668\u548c IDE \u5dee\u5f88\u8fdc \u76f4\u63a5\u4f7f\u7528 pycharm \u5373\u53ef                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u6c42\u6559 vscode \u6709\u6ca1\u529e\u6cd5\u663e\u793a\u4f9d&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\/96473"}],"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=96473"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/96473\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96473"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96473"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}