@@ -9,7 +9,7 @@
"type": "debugpy",
"request": "launch",
"program": "erniecli.py",
- "args": ["command","建立一个图标文件abc.desktop,运行/opt/abc/abc.sh"],
+ "args": ["command","显示当前时间"],
"console": "integratedTerminal"
},
{
@@ -215,6 +215,8 @@ def parse(answer):
continue
if start:
if line.strip() == '```':
+ # 去掉最后的\n
+ cmd = cmd[:-1]
break
cmd += line+'\n'