Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
コード化する方法はありますか:
def fn(): return None
Pythonでラムダとして?
はい、引数リストは省略できます。
fn = lambda: None
5.12からの生産。ラムダは次のとおりです。
lambda_form ::= "lambda" [parameter_list]: expression
前後の角括弧parameter_listは、オプションの要素を示します。
parameter_list
あなたはこれをしなければなりません: