You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
317 B
21 lines
317 B
4 years ago
|
#!/usr/bin/env python
|
||
|
|
||
|
import sys
|
||
|
|
||
|
def cat():
|
||
|
print("Meow")
|
||
|
|
||
|
def dog():
|
||
|
print("Woof")
|
||
|
|
||
|
def main():
|
||
|
if len(sys.argv) > 1 and sys.argv[1] == "cat":
|
||
|
cat()
|
||
|
elif len(sys.argv) > 1 and sys.argv[1] == "dog":
|
||
|
dog()
|
||
|
else:
|
||
|
print("HELLO WORLD")
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
main()
|