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.
次の正しいPythonコードはありますか?そうでない場合、この種の式の正しい構文は何ですか?
x = lambda (y, z=None) : y if z == None else z
かっこは必要ありません。
x = lambda y, z=None: y if z is None else z