BZ易风

导航

 

1.

nums = list()

2.

nums = [x for x in range(10)]  # [0,1,2,3,4,5,6,7,8,9]

nums_2 = [x*2 for x in rang(10)]  # [0,2,4,6,8,10,12,14,16,18]

posted on 2019-08-22 10:17  BZ易风  阅读(760)  评论(0编辑  收藏  举报