... lambda 是一行函數的用法,詳見函數一章。lambda 函數要做的就是奇數值加 1,偶數減 1。範例 117 s 裡若是奇數值就加 1,偶數就減 1 ·程式碼 s.apply(lambda x: x+1 if ...
確定! 回上一頁