打开vscode, file--preferenc---user snippets, 找到python的定义处,添加如下代码:
"Print with space lines": {
"prefix": "ppp",
"body": [
"print('\\n'*2, $1)",
],
"description": "Print with space lines"
}
然后在编写python程序 时候,连续按ppp就可以快捷输出打印变量。
打开vscode, file--preferenc---user snippets, 找到python的定义处,添加如下代码:
"Print with space lines": {
"prefix": "ppp",
"body": [
"print('\\n'*2, $1)",
],
"description": "Print with space lines"
}
然后在编写python程序 时候,连续按ppp就可以快捷输出打印变量。