(Grav GitSync) Automatic Commit from RealStickman
This commit is contained in:
parent
ec4ae98264
commit
18c4854271
14
pages/04.other/13.python/default.en.md
Normal file
14
pages/04.other/13.python/default.en.md
Normal file
@ -0,0 +1,14 @@
|
||||
---
|
||||
title: Python
|
||||
---
|
||||
|
||||
[toc]
|
||||
## Exit on Keyboard Interrupt
|
||||
```
|
||||
try:
|
||||
<put your code here>
|
||||
except KeyboardInterrupt:
|
||||
<stuff that needs to be done before exiting>
|
||||
# return SIGINT code
|
||||
exit(130)
|
||||
```
|
Loading…
Reference in New Issue
Block a user