擅长:python、mysql、java
<p>我在用户设置文件中添加了以下几行,然后它就工作了。
选择一些python代码行,然后右键单击并选择<strong>在python终端中运行所选代码</strong></p>
<p><strong>解决方案1:</strong>将启动iPython终端</p>
<pre><code> "terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": ["/K ipython"],
</code></pre>
<p><strong>解决方案2:</strong>将启动类似“python-i”的终端</p>
<pre><code> "python.terminal.launchArgs": ["-i"],
</code></pre>