Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import time
- def sefa():
- while KeyboardInterrupt:
- try:
- time.sleep(0.5)
- print("sefa")
- except KeyboardInterrupt:
- print('interrupted!')
- time.sleep(0.5)
- return
- if __name__ == '__main__':
- sefa()
Add Comment
Please, Sign In to add comment