从命令行运行 Python 文件时,您使用python3 <file>,但 VSCode Code Runner 使用python3 -u <file>(默认情况下),所以我想知道:
python3 <file>
python3 -u <file>
-u
python command-line
command-line ×1
python ×1