This commit is contained in:
yinjun.chen1
2026-09-01 17:28:01 +08:00
parent b3132b228f
commit fe1a82759f
2 changed files with 23 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
{
// 在集成终端中运行,而不是"输出"面板
"code-runner.runInTerminal": true,
// 使用命令提示符(PowerShell 5.1 不支持 && 连接符,会导致命令报错)
"terminal.integrated.defaultProfile.windows": "Command Prompt",
// 运行前先把控制台代码页切换为 UTF-8 (65001)
"code-runner.executorMap": {
"python": "chcp 65001 >nul && python -u"
},
// 终端默认编码
"terminal.integrated.env.windows": {
"PYTHONIOENCODING": "utf-8"
}
}
@@ -0,0 +1,9 @@
dict = {
'小明':3.251,
'小李':3.569,
'小白':3.713,
'小花':3.416,
'小张':3.689
}
for name,mark in dict.items():
print(mark)