Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #import os
- import sys
- from time import sleep
- DEF_RINGING_TIMES = 10
- def belll():
- # if print("\a") will fail....
- # import os
- # os.system('echo "\007"')
- print("\a", end="")
- print(flush=True, end="")
- how_much = DEF_RINGING_TIMES
- if len(sys.argv) > 1:
- try:
- how_much = int(sys.argv[1])
- except ValueError:
- pass
- for i in range(how_much):
- belll()
- sleep(0.098)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement