Skip to content

Commit 85ffaaa

Browse files
author
bianxiaokai
committed
module
1 parent f6ffbef commit 85ffaaa

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

module/stys.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env python3
2+
# -*- coding: utf-8 -*-
3+
4+
import sys
5+
6+
7+
def test():
8+
args = sys.argv
9+
if len(args) == 1:
10+
print('Hello World')
11+
elif len(args) == 2:
12+
print('Hello, %s!' % args[1])
13+
else:
14+
print('Too many arguments!')
15+
16+
17+
print('__name__', __name__)
18+
19+
if __name__ == '__main__':
20+
test()

0 commit comments

Comments
 (0)