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.

原文地址:https://www.cnblogs.com/Shareishappy/p/6931810.html