Skip to content

Commit 822eb78

Browse files
author
ligl
committed
add hello
1 parent 5bcdf65 commit 822eb78

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: hello.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#!/usr/bin/env python3.6
2+
#coding:utf-8
3+
import sys
4+
import os
5+
num = len(sys.argv)
6+
if num < 3:
7+
print("Please input two options")
8+
sys.exit(1)
9+
arg0 = sys.argv[1]
10+
arg1 = sys.argv[2]
11+
print("第一个参数是:",arg0)
12+
print("第二个参数是:",arg1)

0 commit comments

Comments
 (0)