Skip to content

Commit 3ced10c

Browse files
committed
新增zip测试
1 parent 0432eaf commit 3ced10c

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

test/test_zip.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/env python
2+
# encoding: utf-8
3+
4+
"""
5+
@author: zhanghe
6+
@software: PyCharm
7+
@file: test_zip.py
8+
@time: 2017/10/10 上午9:26
9+
"""
10+
11+
12+
def func():
13+
user_ids = [None, u'2', u'3', None]
14+
session_keys = ['111', '222', '333', '444']
15+
s = dict(zip(user_ids, session_keys))
16+
print s
17+
print map(lambda x: int(x) if x else 0, user_ids)
18+
19+
20+
if __name__ == '__main__':
21+
func()

0 commit comments

Comments
 (0)