{"id":23677,"date":"2017-06-06T14:25:51","date_gmt":"2017-06-06T05:25:51","guid":{"rendered":"http:\/\/www.sejuku.net\/blog\/?p=23677"},"modified":"2024-05-06T11:42:57","modified_gmt":"2024-05-06T02:42:57","slug":"%e3%80%90python%e5%85%a5%e9%96%80%e3%80%91lambda%e3%83%a9%e3%83%a0%e3%83%80%e5%bc%8f%e3%81%ae%e4%bd%bf%e3%81%84%e6%96%b9","status":"publish","type":"post","link":"https:\/\/www.sejuku.net\/blog\/23677","title":{"rendered":"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9"},"content":{"rendered":"\n<p>Python\u306b\u306flambda\uff08\u30e9\u30e0\u30c0\u3068\u8aad\u307f\u307e\u3059\uff09\u5f0f\u3068\u3044\u3046\u66f8\u304d\u65b9\u304c\u3042\u308a\u3001\u5834\u9762\u306b\u5fdc\u3058\u3066\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3068\u3066\u3082\u4fbf\u5229\u306a\u624b\u6cd5\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<\/p>\n\n\n<div class=\"box01\">\n\n\n\n<ul class=\"wp-block-list\">\n<li><b>lambda(\u30e9\u30e0\u30c0)\u5f0f\u3068\u306f<\/b><\/li>\n\n\n\n<li><b>lambda(\u30e9\u30e0\u30c0)\u5f0f\u306e\u4f7f\u3044\u65b9<\/b><\/li>\n\n\n\n<li><b>lambda(\u30e9\u30e0\u30c0)\u5f0f\u3067for\u6587\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/b><\/li>\n\n\n\n<li><b>lambda(\u30e9\u30e0\u30c0)\u5f0f\u3067if\u6587\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/b><\/li>\n<\/ul>\n\n\n<\/div>\n\n\n\n<p>\u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u95a2\u3057\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>lambda(\u30e9\u30e0\u30c0)\u5f0f\u306b\u3064\u3044\u3066\u6b63\u3057\u304f\u7406\u89e3\u3057\u3001\u5fc5\u8981\u306a\u5834\u9762\u3067\u4f7f\u3044\u3053\u306a\u3059\u3053\u3068\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u308f\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3057\u307e\u3059\uff01<\/p>\n\n\n\n<p><b>\u203b \u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306fPython 3.7, Ubuntu 18.04\u3067\u52d5\u4f5c\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002<\/b><\/p>\n\n\n\n<p>\u672c\u8a18\u4e8b\u3092\u8aad\u3080\u524d\u306b\u3001Python\u304c\u3069\u3093\u306a\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u8a00\u8a9e\u306a\u306e\u304b\u3092\u304a\u3055\u3089\u3044\u3057\u3066\u304a\u304d\u305f\u3044\u4eba\u306f\u6b21\u306e\u8a18\u4e8b\u3092\u53c2\u8003\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u2192&nbsp;<a href=\"https:\/\/www.sejuku.net\/blog\/7720\">Python\u3068\u306f\uff1f\u7279\u5fb4\u3084\u3067\u304d\u308b\u3053\u3068\u3001\u6d3b\u7528\u4f8b\u3092\u308f\u304b\u308a\u3084\u3059\u304f\u7c21\u5358\u306b\u89e3\u8aac<\/a><\/p>\n\n\n\n<p>\u306a\u304a\u3001\u305d\u306e\u4ed6\u306ePython\u306e\u8a18\u4e8b\u306b\u3064\u3044\u3066\u306f<a href=\"https:\/\/www.sejuku.net\/blog\/147190\" target=\"_blank\" rel=\"noopener\">\u3053\u3061\u3089<\/a>\u306b\u307e\u3068\u3081\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">lambda\u5f0f\u3068\u306f<\/h2>\n\n\n\n<p>\u305d\u3082\u305d\u3082lambda\uff08\u30e9\u30e0\u30c0\uff09\u3068\u3044\u3046\u7528\u8a9e\u306b\u3064\u3044\u3066\u3001\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u521d\u5b66\u8005\u306b\u306f\u99b4\u67d3\u307f\u304c\u3042\u307e\u308a\u306a\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>lambda\u306b\u3064\u3044\u3066\u7c21\u6f54\u306b\u305d\u306e\u7528\u8a9e\u306e\u610f\u7fa9\u3068\u30e1\u30ea\u30c3\u30c8\u3092\u304a\u4f1d\u3048\u3057\u307e\u3059\u3068\u4ee5\u4e0b\u306e\u901a\u308a\u3068\u306a\u308a\u307e\u3059\u3002lambda\u5f0f\u3068\u306f\u3001\u95a2\u6570\u306b\u540d\u524d\u3092\u4ed8\u3051\u305a\u306b\u5b9a\u7fa9\u3059\u308b\u3082\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u3060\u3051\u3067\u306f\u306a\u3093\u3068\u306a\u304f\u308f\u304b\u3063\u305f\u3088\u3046\u306a\u308f\u304b\u3089\u306a\u3044\u3088\u3046\u306a\u3068\u3044\u3046\u611f\u3058\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3053\u3067\u3001\u3055\u3089\u306b\u5177\u4f53\u7684\u306a\u30b5\u30f3\u30d7\u30eb\u3092\u7528\u3044\u3066lambda\u5f0f\u3092\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lambda\u5f0f\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9<\/h3>\n\n\n\n<p>\u5546\u54c1\u306e\u4fa1\u683c\u3068\u6d88\u8cbb\u7a0e(8%)\u3092\u5165\u308c\u3066\u652f\u6255\u3044\u4ee3\u91d1\u3092\u8a08\u7b97\u3059\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#lambda\u5f0f\u3092\u4f7f\u308f\u305a\u306b\u901a\u5e38\u306e\u95a2\u6570\u3092\u7528\u3044\u308b\u5834\u5408\ndef func(price,tax):\n    return price + (price * tax)\n \npayment1 = func(100,0.08)\nprint(payment1)\n\n#lambda\u5f0f\u3092\u7528\u3044\u308b\u5834\u5408\nprint((lambda price,tax:price + (price * tax))(100,0.08))<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">108.0\n108.0\n<\/pre>\n\n\n\n<p>lambda\u5f0f\u3092\u4f7f\u7528\u3057\u306a\u3044\u5834\u5408\u3001\u307e\u305a\u4fa1\u683c\u3068\u6d88\u8cbb\u7a0e\u3092\u639b\u3051\u5408\u308f\u305b\u3066\u652f\u6255\u3044\u4ee3\u91d1\u3092\u8a08\u7b97\u3059\u308b\u95a2\u6570(func)\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u5f8c\u3001\u95a2\u6570(func)\u306e\u5f15\u6570\u306b\u5b9f\u969b\u306e\u5024(100,0.08)\u3092\u8a2d\u5b9a\u3057\u3001\u305d\u306e\u7d50\u679c\u3092\u5909\u6570(payment1)\u306b\u683c\u7d0d\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e00\u65b9\u3001lambda\u5f0f\u3092\u7528\u3044\u308b\u5834\u5408\u306f\u3001def\u306b\u3088\u308b\u95a2\u6570\u5b9a\u7fa9\u306f\u767b\u5834\u305b\u305a\u3001\u4ee3\u308f\u308a\u306blambda\u3068\u66f8\u3044\u3066\u3001\u305d\u306e\u6a2a\u306b\u5f15\u6570\u305d\u3057\u3066\u3001\u30bb\u30df\u30b3\u30ed\u30f3(:)\u306e\u5f8c\u306b\u5f15\u6570\u3092\u4f7f\u7528\u3057\u305f\u51e6\u7406\u5185\u5bb9\u3068\u3044\u3046\u5f62\u5f0f\u306b\u3066\u66f8\u304f\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#lambda\u5f0f\u306e\u5f62\u5f0f\nlambda \u5f15\u6570:\u51e6\u7406\u5185\u5bb9\n<\/pre>\n\n\n\n<p>\u307e\u305a\u306f\u3053\u306e\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3092\u899a\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u5f15\u6570\u306a\u3057\u306elambda\u5f0f\u306e\u66f8\u304d\u65b9<\/h3>\n\n\n\n<p>lambda\u5f0f\u3067\u306f<b>\u5f15\u6570\u3092\u4e0e\u3048\u3089\u308c\u3066\u3001\u305d\u306e\u5f15\u6570\u3092\u4f7f\u3044\u51e6\u7406\u3092\u884c\u3044\u3001\u305d\u306e\u7d50\u679c\u3092\u8fd4\u3059\u3053\u3068\u304c\u57fa\u672c<\/b>\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3067\u3059\u304c\u3001\u5f15\u6570\u306a\u3057\u306e\u51e6\u7406\u3082\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u304f\u3053\u3068\u306f\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#\u5f15\u6570\u306a\u3057\u306elambda\u5f0f\ngreeting = (lambda: 'hello')()\nprint(greeting)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">hello\n<\/pre>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u308f\u304b\u308a\u3084\u3059\u3055\u3092\u512a\u5148\u3057\u3066lambda\u5f0f\u3092\u5909\u6570\u306b\u4ee3\u5165\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p><a href=\"https:\/\/legacy.python.org\/dev\/peps\/pep-0008\/\">PEP8<\/a>\u3068\u3044\u3046Python\u306e\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u898f\u7d04\u306b\u3088\u308b\u3068\u3001\u300c\u540d\u524d\u3092\u4ed8\u3051\u308b\u5834\u5408\u306fdef\u3092\u4f7f\u3044\u3001lambda\u3092\u4f7f\u3046\u5834\u5408\u306f\u540d\u524d\u3092\u4ed8\u3051\u306a\u3044\u300d\u3092\u63a8\u5968\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>PEP8\u306b\u6cbf\u3063\u3066\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3059\u308b\u3068\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u304c\u66f8\u3051\u308b\u306e\u3067\u3001\u7279\u6bb5\u7406\u7531\u304c\u306a\u3044\u306e\u306a\u3089\u3070lambda\u5f0f\u3092\u4f7f\u3046\u3068\u304d\u306f\u540d\u524d\u3092\u5272\u308a\u5f53\u3066\u306a\u3044\u65b9\u304c\u3044\u3044\u3067\u3059\u306d\u3002<\/p>\n\n\n\n<p>\uff08\u540d\u524d\u3092\u5272\u308a\u5f53\u3066\u308b\u5fc5\u8981\u304c\u306a\u3044\u3068\u3053\u308d\u3067lambda\u5f0f\u3092\u4f7f\u304a\u3046\uff01\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002\uff09<\/p>\n\n\n\n<p>\u3061\u306a\u307f\u306b\u3001\u6709\u5fd7\u306b\u3088\u3063\u3066<a href=\"https:\/\/github.com\/mumumu\/pep8-ja\">\u548c\u8a33\u3055\u308c\u305fPEP8<\/a>\u304c\u516c\u958b\u3055\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u305c\u3072\u8aad\u3093\u3067\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">lambda\u5f0f\u306e\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9<\/h2>\n\n\n\n<p>\u57fa\u672c\u7684\u306a\u66f8\u304d\u65b9\u3092\u78ba\u8a8d\u3057\u305f\u3068\u3053\u308d\u3067\u3001\u6b21\u306f\u3088\u308a\u5b9f\u8df5\u7684\u306a\u4f7f\u3044\u65b9\u3092\u5b66\u3093\u3067\u3044\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lambda\u5f0f\u3067for\u6587\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u4f8b\u3048\u3070\u3001\u69d8\u3005\u306a\u5546\u54c1\u306e\u4fa1\u683c\u3092\u629c\u304d\u51fa\u3057\u305f\u30ea\u30b9\u30c8\u304c\u3042\u308a\u3001\u305d\u306e\u30ea\u30b9\u30c8\u5bfe\u3057\u3066\u3001\u6d88\u8cbb\u7a0e\u3092\u4e0a\u4e57\u305b\u3057\u305f\u4fa1\u683c\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u306e\u5834\u5408\u3001\u5546\u54c1\u4fa1\u683c\u306e\u30ea\u30b9\u30c8\u3092for\u6587\u3092\u4f7f\u7528\u3057\u3066\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">prices = [3000,2500,10500,4300]\npaymentList = []\nfor price in prices:\n    paymentList.append(price * 1.08)\n \nprint(paymentList)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[3240.0, 2700.0, 11340.0, 4644.0]\n<\/pre>\n\n\n\n<p>\u540c\u3058\u51e6\u7406\u5185\u5bb9\u3092\u4eca\u5ea6\u306flambda\u5f0f\u3092\u5229\u7528\u3057\u3066\u5b9f\u88c5\u3057\u307e\u3059\u3002\u305d\u306e\u969b\u306b\u3001\u5408\u308f\u305b\u3066\u5229\u7528\u3059\u308b\u95a2\u6570\u304cmap\u95a2\u6570\u3067\u3059\u3002<\/p>\n\n\n\n<p>map\u95a2\u6570\u306f\u7b2c\u4e00\u5f15\u6570\u306b\u51e6\u7406\u5185\u5bb9\u3001\u7b2c\u4e8c\u5f15\u6570\u306b\u51e6\u7406\u5bfe\u8c61\u306e\u30ea\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">prices = [3000,2500,10500,4300]\npaymentList = list(map(lambda price:price * 1.08 , prices))\n \nprint(paymentList)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[3240.0, 2700.0, 11340.0, 4644.0]\n<\/pre>\n\n\n\n<p>\u3053\u306e\u3088\u3046\u306blambda\u5f0f\u3068map\u95a2\u6570\u3092\u4f75\u7528\u3059\u308b\u3053\u3068\u3067\u3001for\u6587\u306e\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">lambda\u5f0f\u3067if\u6587\u51e6\u7406\u3092\u5b9f\u88c5\u3059\u308b\u65b9\u6cd5<\/h3>\n\n\n\n<p>\u6b21\u306bfor\u6587\u3067\u30ea\u30b9\u30c8\u306e\u8981\u7d20\u3092\u4e00\u3064\u4e00\u3064\u51e6\u7406\u3059\u308b\u969b\u306b\u3001if\u6587\u306e\u6761\u4ef6\u304c\u5165\u308b\u30b1\u30fc\u30b9\u306b\u3064\u3044\u3066\u3082lambda\u5f0f\u3092\u6d3b\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u540c\u3058\u304f\u4f8b\u3068\u3057\u3066\u69d8\u3005\u306a\u5546\u54c1\u306e\u4fa1\u683c\u3092\u629c\u304d\u51fa\u3057\u305f\u30ea\u30b9\u30c8\u304c\u3042\u308a\u3001\u305d\u306e\u30ea\u30b9\u30c8\u304b\u3089\u3042\u308b\u91d1\u984d\u4ee5\u4e0a\u306e\u3082\u306e\u3092\u629c\u304d\u51fa\u3057\u3001\u4fa1\u683c\u306e\u5b89\u3044\u9806\u306b\u4e26\u3079\u305f\u60c5\u5831\u3092\u53d6\u5f97\u3059\u308b\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u88c5\u3059\u308b\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3061\u3089\u3082\u307e\u305a\u306flambda\u5f0f\u3092\u7528\u3044\u306a\u3044\u5834\u5408\u306e\u5b9f\u88c5\u65b9\u6cd5\u306e\u4f8b\u3092\u307f\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">prices = [3000,2500,10500,4300]\npaymentList = []\nfor price in prices:\n    if price &gt; 3500:\n        paymentList.append(price)\n \npaymentList.sort()\n \nprint(paymentList)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[4300, 10500]\n<\/pre>\n\n\n\n<p>\u3053\u308c\u3092lambda\u5f0f\u3092\u7528\u3044\u3066\u66f8\u304f\u3068\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">prices = [3000,2500,10500,4300]\npriceList = list(filter(lambda price:price &gt; 3500, prices))\npriceList.sort()\n \nprint(priceList)\n<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[4300, 10500]\n<\/pre>\n\n\n\n<p>\u4e0a\u8a18\u30b5\u30f3\u30d7\u30eb\u306b\u3066lambda\u5f0f\u3068\u5408\u308f\u305b\u3066list\u95a2\u6570\u3068filter\u95a2\u6570\u3092\u4f7f\u7528\u3057\u307e\u3057\u305f\u3002list\u95a2\u6570\u306f\u5f15\u6570\u306e\u5024\u3092list\u578b\u3078\u5909\u63db\u3057\u3001\u305d\u306e\u5f8c\u3001sort()\u95a2\u6570\u306b\u3066\u4e26\u3073\u66ff\u3048\u3092\u884c\u3046\u305f\u3081\u306b\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u305d\u3057\u3066\u3001filter\u95a2\u6570\u306f\u7b2c\u4e8c\u5f15\u6570\u306b\u6307\u5b9a\u3055\u308c\u305f\u914d\u5217\u306e\u5404\u8981\u7d20\u306b\u5bfe\u3057\u3066\u3001\u7b2c\u4e00\u5f15\u6570\u306e\u95a2\u6570\u51e6\u7406\u3092\u5b9f\u65bd\u3057\u3001True\u3068\u306a\u308b\u3082\u306e\u3060\u3051\u3092\u62bd\u51fa\u3059\u308b\u51e6\u7406\u3092\u884c\u306a\u3063\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u308c\u307e\u3067\u898b\u3066\u3044\u305f\u3060\u3044\u305fmap\u95a2\u6570\u3068filter\u95a2\u6570\u3068\u5408\u308f\u305b\u3066\u6d3b\u7528\u3057\u305flambda\u5f0f\u306f\u3001\u7279\u306b\u7121\u540d\u95a2\u6570\u3068\u547c\u3070\u308c\u308b\u4f7f\u3044\u65b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u4e0b\u8a18\u306e\u901a\u308a\u540d\u524d\u304c\u3042\u308b\u95a2\u6570(checkPrice)\u3092\u4f7f\u7528\u3057\u305f\u51e6\u7406\u3068\u306f\u5bfe\u7167\u7684\u306blambda\u5f0f\u3067\u306f\u95a2\u6570\u540d\u3092\u5b9a\u7fa9\u305b\u305a\u306b\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u304b\u3089\u7121\u540d\u95a2\u6570\u3068\u547c\u3070\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">def checkPrice(price):\n    return price &gt; 3500\n \nprices = [3000,2500,10500,4300]\npriceList = list(filter(checkPrice, prices))\npriceList.sort()\n \nprint(priceList)<\/pre>\n\n\n\n<p>\u5b9f\u884c\u7d50\u679c<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[4300, 10500]\n<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<p>\u3053\u3053\u3067\u306f\u3001lambda\u5f0f\u306b\u3064\u3044\u3066\u3001\u57fa\u672c\u7684\u306a\u4f7f\u3044\u65b9\u304b\u3089\u5fdc\u7528\u7684\u306a\u5177\u4f53\u4f8b\u306b\u3064\u3044\u3066\u3082\u7d39\u4ecb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u69d8\u3005\u306a\u7b87\u6240\u3067\u5171\u901a\u7684\u306b\u4f7f\u7528\u3057\u305f\u3044\u51e6\u7406\u5185\u5bb9\u3067\u3042\u308c\u3070\u3001\u901a\u5e38\u306edef\u3092\u7528\u3044\u305f\u95a2\u6570\u3092\u6d3b\u7528\u3057\u3001\u4f7f\u7528\u7bc4\u56f2\u304c\u9650\u3089\u308c\u308b\u51e6\u7406\u5185\u5bb9\u3067\u3042\u308c\u3070\u3001lambda\u5f0f\u3092\u7528\u3044\u3066\u7c21\u6f54\u306b\u8aad\u307f\u3084\u3059\u3044\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u4e8b\u3092\u512a\u5148\u3059\u308b\u3053\u3068\u3092\u4eca\u5f8c\u306f\u691c\u8a0e\u3057\u3066\u307f\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u3082\u3057\u3001lambda\u5f0f\u306e\u4f7f\u3044\u65b9\u3092\u5fd8\u308c\u3066\u3057\u307e\u3063\u305f\u3089\u3001\u3053\u306e\u8a18\u4e8b\u3092\u601d\u3044\u51fa\u3057\u3066\u304f\u3060\u3055\u3044\u306d\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Python\u306b\u306flambda\uff08\u30e9\u30e0\u30c0\u3068\u8aad\u307f\u307e\u3059\uff09\u5f0f\u3068\u3044\u3046\u66f8\u304d\u65b9\u304c\u3042\u308a\u3001\u5834\u9762\u306b\u5fdc\u3058\u3066\u6d3b\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u3068\u3066\u3082\u4fbf\u5229\u306a\u624b\u6cd5\u3068\u306a\u308a\u307e\u3059\u3002 \u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001 \u306a\u3069\u306e\u57fa\u672c\u7684\u306a\u5185\u5bb9\u304b\u3089\u3001\u5fdc\u7528\u7684\u306a\u4f7f\u3044\u65b9\u306b\u95a2\u3057\u3066\u3082\u89e3\u8aac\u3057\u3066\u3044\u304d\u307e\u3059\u3002 lamb [&hellip;]<\/p>\n","protected":false},"author":16433,"featured_media":23679,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"swell_btn_cv_data":"","footnotes":""},"categories":[2350],"tags":[49],"class_list":["post-23677","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-python-study","tag-python"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0<\/title>\n<meta name=\"description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sejuku.net\/blog\/23677\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"og:description\" content=\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sejuku.net\/blog\/23677\" \/>\n<meta property=\"og:site_name\" content=\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/sejuku2013\" \/>\n<meta property=\"article:published_time\" content=\"2017-06-06T05:25:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-06T02:42:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23677.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"700\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@samuraijuku\" \/>\n<meta name=\"twitter:site\" content=\"@samuraijuku\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677\"},\"author\":{\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\"},\"headline\":\"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9\",\"datePublished\":\"2017-06-06T05:25:51+00:00\",\"dateModified\":\"2024-05-06T02:42:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677\"},\"wordCount\":84,\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23677.jpg\",\"keywords\":[\"python\"],\"articleSection\":[\"Python\u5b66\u7fd2\"],\"inLanguage\":\"ja\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677\",\"name\":\"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23677.jpg\",\"datePublished\":\"2017-06-06T05:25:51+00:00\",\"dateModified\":\"2024-05-06T02:42:57+00:00\",\"description\":\"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#primaryimage\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23677.jpg\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2017\\\/05\\\/23677.jpg\",\"width\":700,\"height\":400},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/23677#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"name\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0\",\"description\":\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ja\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#organization\",\"name\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"contentUrl\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/07\\\/logo.png\",\"width\":600,\"height\":600,\"caption\":\"\u682a\u5f0f\u4f1a\u793eSAMURAI\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/sejuku2013\",\"https:\\\/\\\/x.com\\\/samuraijuku\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCCFOQO5aDK0xXam4cUQXT8g\\\/featured\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/#\\\/schema\\\/person\\\/d20c57b59dba15001519a8a671183095\",\"name\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g\",\"caption\":\"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\"},\"description\":\"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002\",\"url\":\"https:\\\/\\\/www.sejuku.net\\\/blog\\\/author\\\/samurai-tech\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sejuku.net\/blog\/23677","og_locale":"ja_JP","og_type":"article","og_title":"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","og_description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","og_url":"https:\/\/www.sejuku.net\/blog\/23677","og_site_name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","article_publisher":"https:\/\/www.facebook.com\/sejuku2013","article_published_time":"2017-06-06T05:25:51+00:00","article_modified_time":"2024-05-06T02:42:57+00:00","og_image":[{"width":700,"height":400,"url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23677.jpg","type":"image\/jpeg"}],"author":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","twitter_card":"summary_large_image","twitter_creator":"@samuraijuku","twitter_site":"@samuraijuku","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.sejuku.net\/blog\/23677#article","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/23677"},"author":{"name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095"},"headline":"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9","datePublished":"2017-06-06T05:25:51+00:00","dateModified":"2024-05-06T02:42:57+00:00","mainEntityOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23677"},"wordCount":84,"publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23677#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23677.jpg","keywords":["python"],"articleSection":["Python\u5b66\u7fd2"],"inLanguage":"ja"},{"@type":"WebPage","@id":"https:\/\/www.sejuku.net\/blog\/23677","url":"https:\/\/www.sejuku.net\/blog\/23677","name":"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 | \u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","isPartOf":{"@id":"https:\/\/www.sejuku.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sejuku.net\/blog\/23677#primaryimage"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/23677#primaryimage"},"thumbnailUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23677.jpg","datePublished":"2017-06-06T05:25:51+00:00","dateModified":"2024-05-06T02:42:57+00:00","description":"\u3053\u306e\u8a18\u4e8b\u3067\u306f\u300c \u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9 \u300d\u306b\u3064\u3044\u3066\u3001\u8ab0\u3067\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u306b\u89e3\u8aac\u3057\u307e\u3059\u3002\u3053\u306e\u8a18\u4e8b\u3092\u8aad\u3081\u3070\u3001\u3042\u306a\u305f\u306e\u60a9\u307f\u304c\u89e3\u6c7a\u3059\u308b\u3060\u3051\u3058\u3083\u306a\u304f\u3001\u65b0\u305f\u306a\u6c17\u4ed8\u304d\u3082\u767a\u898b\u3067\u304d\u308b\u3053\u3068\u3067\u3057\u3087\u3046\u3002\u304a\u60a9\u307f\u306e\u65b9\u306f\u305c\u3072\u3054\u4e00\u8aad\u304f\u3060\u3055\u3044\u3002","breadcrumb":{"@id":"https:\/\/www.sejuku.net\/blog\/23677#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sejuku.net\/blog\/23677"]}]},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/23677#primaryimage","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23677.jpg","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2017\/05\/23677.jpg","width":700,"height":400},{"@type":"BreadcrumbList","@id":"https:\/\/www.sejuku.net\/blog\/23677#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sejuku.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u3010Python\u5165\u9580\u3011lambda(\u30e9\u30e0\u30c0\u5f0f)\u306e\u4f7f\u3044\u65b9"}]},{"@type":"WebSite","@id":"https:\/\/www.sejuku.net\/blog\/#website","url":"https:\/\/www.sejuku.net\/blog\/","name":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u30d6\u30ed\u30b0","description":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u306e\u3059\u3079\u3066\u304c\u30b3\u30b3\u306b\u3002","publisher":{"@id":"https:\/\/www.sejuku.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sejuku.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ja"},{"@type":"Organization","@id":"https:\/\/www.sejuku.net\/blog\/#organization","name":"\u682a\u5f0f\u4f1a\u793eSAMURAI","url":"https:\/\/www.sejuku.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","contentUrl":"https:\/\/www.sejuku.net\/blog\/wp-content\/uploads\/2023\/07\/logo.png","width":600,"height":600,"caption":"\u682a\u5f0f\u4f1a\u793eSAMURAI"},"image":{"@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/sejuku2013","https:\/\/x.com\/samuraijuku","https:\/\/www.youtube.com\/channel\/UCCFOQO5aDK0xXam4cUQXT8g\/featured"]},{"@type":"Person","@id":"https:\/\/www.sejuku.net\/blog\/#\/schema\/person\/d20c57b59dba15001519a8a671183095","name":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d91ed20aaa7f873a0f4f35586561303460c1e3864746dddb6ebe0fb093c1952d?s=96&d=mm&r=g","caption":"\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8"},"description":"\u4f8d\u30a8\u30f3\u30b8\u30cb\u30a2\u587e\u306f\u300c\u4eba\u751f\u3092\u5909\u3048\u308b\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u5b66\u7fd2\u300d\u3092\u30b3\u30f3\u30bb\u30f3\u30d7\u30c8\u306b\u3001\u904e\u53bb\u591a\u304f\u306e\u30d5\u30ea\u30fc\u30e9\u30f3\u30b9\u30a8\u30f3\u30b8\u30cb\u30a2\u3092\u8f29\u51fa\u3057\u305f\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\u30b9\u30af\u30fc\u30eb\u3067\u3059\u3002\u4f8d\u30c6\u30c3\u30af\u7de8\u96c6\u90e8\u3067\u306f\u6280\u8853\u7cfb\u30b3\u30f3\u30c6\u30f3\u30c4\u3092\u4e2d\u5fc3\u306b\u6709\u7528\u306a\u60c5\u5831\u3092\u767a\u4fe1\u3057\u3066\u3044\u304d\u307e\u3059\u3002","url":"https:\/\/www.sejuku.net\/blog\/author\/samurai-tech"}]}},"_links":{"self":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23677","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/users\/16433"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/comments?post=23677"}],"version-history":[{"count":0,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/posts\/23677\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media\/23679"}],"wp:attachment":[{"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/media?parent=23677"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/categories?post=23677"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sejuku.net\/blog\/wp-json\/wp\/v2\/tags?post=23677"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}