... lambda n: str(n)」傳給 map()函式來處理: >>> mapObj = map(lambda n: str(n) ... if n % 2 [8, 16, 18, 12, 6]您應該有留意到,串列推導式中的「if n % 2 == 0」部分與 ...
確定! 回上一頁