VSCode终端区显示一堆无用的东西
vscode吧
全部回复
仅看楼主
level 2
小白求助!刚刚用VSCode,用的Python默认的调试配置
{
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Python: 当前文件",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}
然后这是我的程序
import time
List_1 = [3,1,3,5,6,9]
def quick_sort(List):
if len(List) >= 2:
left = []
right = []
key = List[0]
List.remove(key) #删除
for i in List:
if i < key:
left.append(i)
else:
right.append(i)
return quick_sort(left)+[key]+quick_sort(right)
else:
return List
start = time.clock()
print(quick_sort(List_1))
end = time.clock()
print(end-start)
但是终端区显示了一大堆内容
但是有用的只有两行
麻烦大佬赐教,万分感谢!!!
2020年10月07日 15点10分 1
level 13
英文的信息都很明确了,静下心来看看就能看懂
2020年10月08日 04点10分 2
level 2
未果依旧
2020年10月10日 16点10分 3
1