python 的zip 函数小例子

In [57]: name = ('Tome','Rick','Stephon')

In [58]: age = (45,23,55)

In [59]: for a,n in zip (name,age):
....: print a,n
....:
Tome 45
Rick 23
Stephon 55

In [60]:

posted @ 2017-09-24 18:49  健哥的数据花园  阅读(220)  评论(0编辑  收藏  举报