因此,像if或for或print這種語句就不能用於lambda中,lambda一般只用來定義簡單的函數。 下面舉幾個python lambda的例子吧. ① 單個參數的: g = lambda x ...
確定! 回上一頁