add some random code
This commit is contained in:
parent
517620d539
commit
be4f8fc0ba
1 changed files with 23 additions and 0 deletions
23
someCode.py
Normal file
23
someCode.py
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
#coding: utf-8
|
||||||
|
|
||||||
|
"""
|
||||||
|
Code for testing packaging.
|
||||||
|
"""
|
||||||
|
import sys
|
||||||
|
|
||||||
|
def function1():
|
||||||
|
print("Hello Word")
|
||||||
|
|
||||||
|
def function2():
|
||||||
|
print(" ".join(sys.argv))
|
||||||
|
print("-> Hi!")
|
||||||
|
|
||||||
|
def main():
|
||||||
|
if "--args" in sys.argv:
|
||||||
|
function2()
|
||||||
|
else:
|
||||||
|
function1()
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
main()
|
Loading…
Reference in a new issue