2015年12月24日

python Memo

摘要: list&tuple 运算乘以constant>>> x = ((1,2),)>>> x*2((1, 2), (1, 2))>>> x = ((1,2))>>> x*2(1, 2, 1, 2)>>> View Code从上面可以看出,tuple或者list和一个常数相乘,会复制元素得到一个新的tup... 阅读全文

posted @ 2015-12-24 12:26 yuanww 阅读(670) 评论(0) 推荐(0) 编辑

导航