We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccfee03 commit 2d054dcCopy full SHA for 2d054dc
1 file changed
test/test_dict.py
@@ -42,6 +42,17 @@ def test_03():
42
print dict(zip(list_a[::-1], list_b))
43
44
45
+def test_04():
46
+ """
47
+ 测试列表子元素算术运算
48
+ :return:
49
50
+ a = [1, 2, 3]
51
+ b = [4, 5, 6]
52
+ c = [a[i] + b[i] for i in range(min(len(a), len(b)))]
53
+ print c
54
+
55
56
def test_group():
57
"""
58
测试分组
@@ -99,6 +110,7 @@ def test_group():
99
110
test_01()
100
111
test_02()
101
112
test_03()
113
+ test_04()
102
114
test_group()
103
115
104
116
0 commit comments