摘要:python中的链表推导式 博客分类: Python Python python中的链表推导式 Python Python代码 num=[1,2,3] myvec=[[x,x*2] for x in num] #嵌套一个链表,格式为一个数和他的平方 print myvec 生成链表很简单的一种办法就
阅读全文
posted @ 2018-05-03 09:36
posted @ 2018-05-03 09:36
posted @ 2016-09-07 10:55
posted @ 2016-08-25 18:59
posted @ 2016-08-21 22:08
posted @ 2016-08-21 21:22