+ 3

What code should I use in order to quickly shut down an application in Python?

21st Sep 2019, 7:31 PM
Basheh
Basheh - avatar
6 Réponses
+ 1
If you want to use something like getch() in Python use the function input().
21st Sep 2019, 8:05 PM
Ulisses Cruz
Ulisses Cruz - avatar
+ 2
Like c++ _getch()
21st Sep 2019, 7:49 PM
Basheh
Basheh - avatar
+ 2
Stop it from quickly shuting down
21st Sep 2019, 8:04 PM
Basheh
Basheh - avatar
+ 1
armin mohammadi are you trying to shutdown you code or stop it from quickly shuting down?
21st Sep 2019, 8:03 PM
Ulisses Cruz
Ulisses Cruz - avatar
0
What do you mean by 'quickly shutdown' ?
21st Sep 2019, 7:39 PM
Aymane Boukrouh
Aymane Boukrouh - avatar
0
Just call the function `exit()`
21st Sep 2019, 7:49 PM
Ulisses Cruz
Ulisses Cruz - avatar