We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0432eaf commit 3ced10cCopy full SHA for 3ced10c
1 file changed
test/test_zip.py
@@ -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