2018-08-15から1日間の記事一覧
def function1(): return "function1" def function2(): return "function2" function = function2 # 関数を変数に代入する(関数オブジェクト) print( function() ) #関数を呼び出す function = lambda x : x * 2 #ラムダ print( function( 3 ) ) i = [1, 3,…
def function1(): return "function1" def function2(): return "function2" function = function2 # 関数を変数に代入する(関数オブジェクト) print( function() ) #関数を呼び出す function = lambda x : x * 2 #ラムダ print( function( 3 ) ) i = [1, 3,…