我的脚本有问题。我想从头到尾为整个脚本做一个事件监听器。如果有人按下 ctrl-c 或它应该忽略的东西,或者以打印结束 scipt。
如果需要,我可以向您展示我的代码。
我尝试了信号和系统,但我不知道如何正确使用它
Find centralized, trusted content and collaborate around the technologies you use most.
Learn moreTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more我的脚本有问题。我想从头到尾为整个脚本做一个事件监听器。如果有人按下 ctrl-c 或它应该忽略的东西,或者以打印结束 scipt。
如果需要,我可以向您展示我的代码。
我尝试了信号和系统,但我不知道如何正确使用它