[root@localhost /]#
[root@localhost /]# cat ./for.py
#!/bin/python
from random import randint
from itertools import chain
a=[randint(10,100) for _ in range(20)]
b=[randint(10,100) for _ in range(20)]
c=[randint(10,100) for _ in range(20)]
for n,m,v in zip(a,b,c):
print n+m+v
count=0
for h in chain(a,b,c):
count += 1
print count
[root@localhost /]#
[root@localhost /]#
阅读(15011) | 评论(0) | 转发(0) |