摘要: name=["ad","kein","tom"] age=[23,45,22] tel=['157','139','167'] print(list(zip(name,age,tel))) test=[1,2] print(list(zip(name,age,tel,test))) >>> [('ad', 23, '157'), ('kein', 45, '139'), ('tom',... 阅读全文
posted @ 2017-08-15 22:31 AAA五金批发王建军 阅读(206) 评论(0) 推荐(0)
摘要: l = range(0,20) def f(x): if x%2 == 0: return True print(list(filter(f,l))) #和python2的区别在于,要加一个list 阅读全文
posted @ 2017-08-15 22:09 AAA五金批发王建军 阅读(852) 评论(0) 推荐(0)
摘要: def jia(x,y): return x+y def jian(x,y): return x-y def cheng(x,y): return x*y def chu(x,y): return x/y #建一个字典,使得对应的运算符取到对应的运算方法: operator = {"+":jia,"-":jian,"*":cheng,"/":chu} def... 阅读全文
posted @ 2017-08-15 21:35 AAA五金批发王建军 阅读(773) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/aq_cainiao_aq/article/details/51701861 阅读全文
posted @ 2017-08-15 20:37 AAA五金批发王建军 阅读(404) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2017-08-15 09:40 AAA五金批发王建军 阅读(11) 评论(0) 推荐(0)