Skip to content

Commit 85ebf35

Browse files
committed
tricks.py
1 parent 6847426 commit 85ebf35

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

python/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
all:
2+
./tricks.py
23
-./2.3.py
34
-./2.4.py
45
-./2.5.py

python/tricks.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python
2+
3+
def multi_args(a, b, c,):
4+
assert(a == 1)
5+
assert(b == 2)
6+
assert(c == 3)
7+
pass
8+
9+
args = { 'a': 1, 'b': 2, 'c': 3 }
10+
11+
multi_args(**args)
12+
13+
args = [ 1, 2, 3 ]
14+
15+
multi_args(*args)

0 commit comments

Comments
 (0)