我试图理解为什么当我在无限循环中按 Ctrl + C 时整个 Python 进程不会被终止,或者就我在终端中运行的任何 Python 函数而言,只有循环/函数被停止?
command-line process signal
command-line ×1
process ×1
signal ×1