用colab提供的Ctrl+M.的方法感觉不对,下次可以试试 import os os.kill(os.getpid(), 9) 来源:https://www.jianshu.com/p/5c216d48b708