摘要: 进入python shell>>> x = [1, 2, 3]>>> y = [i*2 for i in x]>>> y[2, 4, 6]>>> type(y)这样得到的y是list类型>>> y= (i*2 for i in x)>>> y at 0xb74ee89c>>>> type(y)将中括... 阅读全文
posted @ 2015-07-29 15:40 lixiaodi 阅读(310) 评论(0) 推荐(0) 编辑