We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
© Gridscale Inc. http://www.gridscale.com
Pythonはマルチパラダイム言語です。関数型オブジェクトが存在します。 ラムダ式は式を名前のない関数オブジェクトに変関数式のことです。 一つの式のためにわざわざ関数を定義したくない場合、Lamda式を使うのが有効でしょ。 でも、あまりにも乱用すると、ソースコードがあえて読みづらくなりますので、ほどほど使いましょう。
■ 関数ですから、パラメータを持つことができます。 ■ 式ですから、この関数の中には一つの式しか表現できない。 Keywork: lambda
x + y ------> lambda (x,y) : x + y x*2 + y*2 -----> lambda (x,y) : x*x + y*y
挨拶できるラムダ式を作ってくだい。 xxと渡したら、と出力。 こんにちは、xxさん。
「田中さん、こんにち」はでもいいけどね。
https://docs.python.jp/3/reference/expressions.html#lambda
#!/usr/bin/env python # -*- coding: utf-8 -*- # What we learn here: xxxxx
https://docs.python.org/ja/3/reference/index.html
githubに宿題をコミットする際、必ず下記の様なフォルダ構成にしたがって欲しいです。 宿題を完成させたエビデンスファイルも合わせて出してください。できれば。
---- 「ご自分のgithubid] --- less001 -- file001.py -- evidence001.txt
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lambda式、匿名関数のこと
© Gridscale Inc. http://www.gridscale.com
前振り
Pythonはマルチパラダイム言語です。関数型オブジェクトが存在します。
ラムダ式は式を名前のない関数オブジェクトに変関数式のことです。
一つの式のためにわざわざ関数を定義したくない場合、Lamda式を使うのが有効でしょ。
でも、あまりにも乱用すると、ソースコードがあえて読みづらくなりますので、ほどほど使いましょう。
■ 関数ですから、パラメータを持つことができます。
■ 式ですから、この関数の中には一つの式しか表現できない。
Keywork: lambda
要件説明
挨拶できるラムダ式を作ってくだい。
xxと渡したら、と出力。 こんにちは、xxさん。
「田中さん、こんにち」はでもいいけどね。
reference
宿題学習ポイント(Concept)
https://docs.python.jp/3/reference/expressions.html#lambda
参考実装
言語リファレンス
https://docs.python.org/ja/3/reference/index.html
宿題の提出について
githubに宿題をコミットする際、必ず下記の様なフォルダ構成にしたがって欲しいです。
宿題を完成させたエビデンスファイルも合わせて出してください。できれば。
The text was updated successfully, but these errors were encountered: