18 lines
297 B
Python
Executable File
18 lines
297 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
from time import sleep
|
|
|
|
|
|
def run():
|
|
try:
|
|
n = 0
|
|
while True:
|
|
print(f"\tTest Infinite Loop with sigint: {n}")
|
|
n += 1
|
|
sleep(0.3)
|
|
except KeyboardInterrupt:
|
|
print("\tTest Infinite Loop with sigint: bye bye!")
|
|
|
|
|
|
|