j-kyodaj-kyoda のブックマーク 2024/02/22 11:52

その他

このブックマークにはスターがありません。
最初のスターをつけてみよう!

Capture keyboardinterrupt in Python without try-except

    Is there some way in Python to capture KeyboardInterrupt event without putting all the code inside a try-except statement? I want to cleanly exit without trace if user presses Ctrl+C.

    \ コメントが サクサク読める アプリです /

    • App Storeからダウンロード
    • Google Playで手に入れよう