[英]Copy paste into terminal give '^[' line breaks so code wont run
I have a stupid issue I am struggling to resolve. 我有一个愚蠢的问题正在努力解决。 While testing code in the Terminal panel within Visual Studio I find that the terminal automatically add '^[' as line breaks between my code causing it to fall over. 在Visual Studio的“终端”面板中测试代码时,我发现终端会自动添加'^ [',因为代码之间的换行会导致代码掉落。
I can delete these out and then the code runs but obviously i dont want to have to do that every time i am testing something. 我可以删除这些内容,然后运行代码,但是显然我不想每次测试某些东西时都必须这样做。
In [1]: import pandas as pd
...: ^[
...: from tqdm import tqdm
...: ^[
...: import numpy as np
...: ^[
...:
...: ^[
...: from db.sql_connection import connection
...: ^[
...: from utils.until_funcs import column_strip,
我不知道您使用的是什么外壳或使用的是什么环境,但是在Win7上我会遇到这种情况,因此您只需要右键单击cmd内然后选择粘贴
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.