hausaufgabe--python 12-List comprehensions

000-- List comprehensions

 

Above one is equal to :

 

 

 

 

for the first one, it's equal to :

 

 

001-- list functions:

list.sort()

list.reverse() == list.sort(reverse=true)

list.copy()

list.clear() __ the list still exist, but it's a empty list after clear.

 

posted @ 2017-06-02 09:28  ReedyLi  阅读(121)  评论(0编辑  收藏  举报