摘要:
编程实现:a[0]*b[0] + a[1]*b[1] +...+a[i]*b[j] >>> a=[1,2,3,4,5]>>> b=[6,7,8,9,0] >>> from functools import reduce>>> from operator import add,mul>>> reduc 阅读全文
posted @ 2017-02-05 21:48
紫色物语
阅读(165)
评论(0)
推荐(0)
摘要:
>>>def foo(x,y,z,*args,**kargs): print x print y print z print args print kargs >>> foo(1,2,3,4,5,name="qiwsir",age=37) 1 2 3 (4, 5) {'name': 'qiwsir' 阅读全文
posted @ 2017-02-05 18:28
紫色物语
阅读(195)
评论(0)
推荐(0)

浙公网安备 33010602011771号