proper use of list comprehensions - python

后端 未结 5 914
予麋鹿
予麋鹿 2020-12-10 04:32

Normally, list comprehensions are used to derive a new list from an existing list. Eg:

>>> a = [1, 2, 3, 4, 5]
>>> [i for i in a if i >          


        
5条回答
提交回复
热议问题