[問卦] python語法怎麼那麼好用!

作者: BigCockman (大雕男)   2021-07-21 14:47:53
l = [1,2,3]
m=[i *5 for i in l]
print(m) # [5,10,15]
也太好用了吧!
不像JS還要用map傳callback, Java還要用什麼stream的超級麻煩
為什麼Python語法這麼強!有卦嗎!

Links booklink

Contact Us: admin [ a t ] ucptt.com