{"id":2878,"date":"2018-04-15T02:22:13","date_gmt":"2018-04-14T17:22:13","guid":{"rendered":"https:\/\/tech.akat.info\/?p=2878"},"modified":"2018-04-15T02:22:13","modified_gmt":"2018-04-14T17:22:13","slug":"python-izm-%e5%9f%ba%e7%a4%8e%e7%b7%a8%e3%82%92-lambda-%e3%81%a7%e8%a9%a6%e3%81%97%e3%81%a6%e3%81%bf%e3%81%9f","status":"publish","type":"post","link":"https:\/\/tech.akat.info\/?p=2878","title":{"rendered":"Python-izm \u57fa\u790e\u7de8\u3092 Lambda \u3067\u8a66\u3057\u3066\u307f\u305f"},"content":{"rendered":"<p><a href=\"https:\/\/www.python-izm.com\/\">Python-izm<\/a>\u306a\u308b\u52c9\u5f37\u306b\u306a\u308b\u30b5\u30a4\u30c8\u3092\u898b\u3064\u3051\u305f\u305f\u3081\u3001AWS Lambda\u3067\u8a66\u3057\u3066\u307f\u305f\u3002<\/p>\n<h1>\u57fa\u790e\u7de8<\/h1>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/string\/\">\u6587\u5b57\u5217<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef lambda_handler(event, context):\r\n\t    testnum = &quot;123&quot;\r\n\t    testnum = testnum + &quot;456&quot;\r\n\t    testnum\t= testnum + &quot;789&quot;\r\n\t    testnum += &quot;0&quot;\r\n\t    print(testnum)\r\n\t    print(testnum.replace('1234567890','0123456789'))\r\n\t    print(testnum.rjust(20,'0'))\r\n\t    print(testnum.zfill(20))\r\n\t    \r\n\t    teststr = 'this-message'\r\n\t    print(teststr)\r\n\t    print(teststr.startswith('this'))\r\n\t    print(teststr.split('-'))\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;ebe00f2f-3fda-11e8-b0be-112860d9c610&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: ebe00f2f-3fda-11e8-b0be-112860d9c610 Version: $LATEST\r\n1234567890\r\n0123456789\r\n00000000001234567890\r\n00000000001234567890\r\nthis-message\r\nTrue\r\n&#x5B;'this', 'message']\r\nEND RequestId: ebe00f2f-3fda-11e8-b0be-112860d9c610\r\nREPORT RequestId: ebe00f2f-3fda-11e8-b0be-112860d9c610\tDuration: 0.83 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/integer\/\">\u6570\u5024<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef lambda_handler(event, context):\r\n\t\ttestint = 100.5\r\n\t\tprint(float(testint) + 100)\r\n\t\t\r\n\t\ttestcomp = 100 + 5j\r\n\t\tprint(testcomp.real)\r\n\t\tprint(testcomp.imag)\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;98ecdea0-3fde-11e8-84a6-6331306e40e3&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 98ecdea0-3fde-11e8-84a6-6331306e40e3 Version: $LATEST\r\n200.5\r\n100.0\r\n5.0\r\nEND RequestId: 98ecdea0-3fde-11e8-84a6-6331306e40e3\r\nREPORT RequestId: 98ecdea0-3fde-11e8-84a6-6331306e40e3\tDuration: 0.42 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/date_time\/\">\u65e5\u4ed8\u30fb\u6642\u9593<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nimport datetime\r\nimport calendar\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttoday = datetime.date.today()\r\n\t\ttodaydetail = datetime.datetime.today()\r\n\t\tprint(today)\r\n\t\tprint(todaydetail)\r\n\t\tprint(todaydetail + datetime.timedelta(hours=9))\r\n\t\tprint(todaydetail.year)\r\n\t\tprint(todaydetail.strftime(&quot;%Y\/%m\/%d %H:%M:%S&quot;))\r\n\t\tprint(calendar.isleap(2018))\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;cb3365b8-3fdf-11e8-9ef3-f786a1acc5e8&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: cb3365b8-3fdf-11e8-9ef3-f786a1acc5e8 Version: $LATEST\r\n2018-04-14\r\n2018-04-14 12:31:45.698769\r\n2018-04-14 21:31:45.698769\r\n2018\r\n2018\/04\/14 12:31:45\r\nFalse\r\nEND RequestId: cb3365b8-3fdf-11e8-9ef3-f786a1acc5e8\r\nREPORT RequestId: cb3365b8-3fdf-11e8-9ef3-f786a1acc5e8\tDuration: 9.95 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/tuple\/\">\u30bf\u30d7\u30eb<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nimport datetime\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttest_tuple = get_today()\r\n\t\tprint(test_tuple)\r\n\t\tprint(test_tuple&#x5B;0])\r\n\r\ndef get_today():\r\n\t\ttoday = datetime.datetime.today()\r\n\t\tvalue = (today.year, today.month, today.day)\r\n\t\treturn value\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;2e249bf9-3fe2-11e8-ac44-514731084dd0&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 2e249bf9-3fe2-11e8-ac44-514731084dd0 Version: $LATEST\r\n(2018, 4, 14)\r\n2018\r\nEND RequestId: 2e249bf9-3fe2-11e8-ac44-514731084dd0\r\nREPORT RequestId: 2e249bf9-3fe2-11e8-ac44-514731084dd0\tDuration: 28.05 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/list\/\">\u30ea\u30b9\u30c8<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttest_list = &#x5B;'this','-','is','-','test']\r\n\t\tprint(test_list)\r\n\t\t\r\n\t\tfor i in test_list:\r\n\t\t\tprint(i)\r\n\t\t\r\n\t\ttest_list.append('.')\r\n\t\tprint(test_list)\r\n\t\tprint(test_list.index('test'))\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;126169e5-3fe3-11e8-8df7-4d4c2b06e81b&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 126169e5-3fe3-11e8-8df7-4d4c2b06e81b Version: $LATEST\r\n&#x5B;'this', '-', 'is', '-', 'test']\r\nthis\r\n-\r\nis\r\n-\r\ntest\r\n&#x5B;'this', '-', 'is', '-', 'test', '.']\r\n4\r\nEND RequestId: 126169e5-3fe3-11e8-8df7-4d4c2b06e81b\r\nREPORT RequestId: 126169e5-3fe3-11e8-8df7-4d4c2b06e81b\tDuration: 0.48 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/dict\/\">\u30c7\u30a3\u30af\u30b7\u30e7\u30ca\u30ea<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttest_dict = {'year':'2018','mon':'04','day':'14'}\r\n\t\tfor i in test_dict:\r\n\t\t\tprint(i)\r\n\t\t\tprint(test_dict&#x5B;i])\r\n\t\t\r\n\t\tprint(test_dict.get('year','NOT FOUND'))\r\n\t\tprint(test_dict.get('years','NOT FOUND'))\r\n\t\t\r\n\t\tprint(test_dict.keys())\r\n\t\tprint(test_dict.values())\r\n\t\t\r\n\t\tfor key,value in test_dict.items():\r\n\t\t\tprint(key,&quot;:&quot;,value)\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;be57689a-3fe5-11e8-a508-7926ec266421&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: be57689a-3fe5-11e8-a508-7926ec266421 Version: $LATEST\r\nyear\r\n2018\r\nmon\r\n04\r\nday\r\n14\r\n2018\r\nNOT FOUND\r\ndict_keys(&#x5B;'year', 'mon', 'day'])\r\ndict_values(&#x5B;'2018', '04', '14'])\r\nyear : 2018\r\nmon : 04\r\nday : 14\r\nEND RequestId: be57689a-3fe5-11e8-a508-7926ec266421\r\nREPORT RequestId: be57689a-3fe5-11e8-a508-7926ec266421\tDuration: 0.58 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/set\/\">\u30bb\u30c3\u30c8<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttest_set = {'this','-','is','-','set'}\r\n\t\tprint(test_set)\r\n\t\t\r\n\t\tfor i in test_set:\r\n\t\t\tprint(i)\r\n\t\t\r\n\t\ttest_set.discard('-')\r\n\t\tprint(test_set)\r\n\t\t\r\n\t\ttest_set_frozon = frozenset({'can','not','add','and','discard'})\r\n\t\tprint(test_set_frozon)\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;84c22b12-3fe8-11e8-b96a-af1c8c10d84a&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 84c22b12-3fe8-11e8-b96a-af1c8c10d84a Version: $LATEST\r\n{'is', 'set', '-', 'this'}\r\nis\r\nset\r\n-\r\nthis\r\n{'is', 'set', 'this'}\r\nfrozenset({'discard', 'can', 'not', 'add', 'and'})\r\nEND RequestId: 84c22b12-3fe8-11e8-b96a-af1c8c10d84a\r\nREPORT RequestId: 84c22b12-3fe8-11e8-b96a-af1c8c10d84a\tDuration: 0.43 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/slice\/\">\u30b9\u30e9\u30a4\u30b9<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttest_list = &#x5B;'this','is','python','slice','set']\r\n\t\tprint(test_list&#x5B;:])\r\n\t\tprint(test_list&#x5B;:4])\r\n\t\tprint(test_list&#x5B;1:])\r\n\t\tprint(test_list&#x5B;::2])\r\n\t\tprint(test_list&#x5B;-1::])\r\n\t\tprint(test_list&#x5B;::-1])\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;1467b80a-3ffc-11e8-8f0b-d9cd7250656b&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 1467b80a-3ffc-11e8-8f0b-d9cd7250656b Version: $LATEST\r\n&#x5B;'this', 'is', 'python', 'slice', 'set']\r\n&#x5B;'this', 'is', 'python', 'slice']\r\n&#x5B;'is', 'python', 'slice', 'set']\r\n&#x5B;'this', 'python', 'set']\r\n&#x5B;'set']\r\n&#x5B;'set', 'slice', 'python', 'is', 'this']\r\nEND RequestId: 1467b80a-3ffc-11e8-8f0b-d9cd7250656b\r\nREPORT RequestId: 1467b80a-3ffc-11e8-8f0b-d9cd7250656b\tDuration: 0.40 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/import\/\">\u30a4\u30f3\u30dd\u30fc\u30c8<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nclass TestClass:\r\n    def __init__(self):\r\n        print('Create TestClass')\r\n        \r\n    def test_method(self,val):\r\n        print('call test_method')\r\n        print(val)\r\n==========================================================================\r\nimport testmod\r\n\r\ndef lambda_handler(event, context):\r\n\t\ttest_class = testmod.TestClass()\r\n\t\ttest_class.test_method('1')\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;da5fbad7-3ffe-11e8-99e4-f124716fdbac&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: da5fbad7-3ffe-11e8-99e4-f124716fdbac Version: $LATEST\r\nCreate TestClass\r\ncall test_method\r\n1\r\nEND RequestId: da5fbad7-3ffe-11e8-99e4-f124716fdbac\r\nREPORT RequestId: da5fbad7-3ffe-11e8-99e4-f124716fdbac\tDuration: 0.34 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/04\/lambda.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/04\/lambda-300x148.png\" alt=\"\" width=\"300\" height=\"148\" class=\"alignnone size-medium wp-image-2879\" srcset=\"https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/04\/lambda-300x148.png 300w, https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/04\/lambda-768x379.png 768w, https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/04\/lambda-1024x506.png 1024w, https:\/\/tech.akat.info\/wp-content\/uploads\/2018\/04\/lambda.png 1055w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/command_line_arguments\/\">\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u5f15\u6570<\/a><br \/>\nLabmda\u3067\u306fevent\u3092\u5229\u7528\u3059\u308b\u3002<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef lambda_handler(event, context):\r\n\t\tprint(event)\r\n\t\tprint(event&#x5B;'msg'])\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;bd98380a-3fff-11e8-b8af-798937c861d6&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: bd98380a-3fff-11e8-b8af-798937c861d6 Version: $LATEST\r\n{'msg': 'Hello World'}\r\nHello World\r\nEND RequestId: bd98380a-3fff-11e8-b8af-798937c861d6\r\nREPORT RequestId: bd98380a-3fff-11e8-b8af-798937c861d6\tDuration: 0.38 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/path_join\/\">\u30d1\u30b9\u306e\u7d50\u5408\u30fb\u9023\u7d50<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nimport os\r\n\r\ndef lambda_handler(event, context):\r\n\t\tdirectory = &quot;\/etc\/python&quot;\r\n\t\tfile = &quot;setting.ini&quot;\r\n\t\tprint(os.path.join(directory,file))\r\n\t\tprint(os.path.join(directory,&quot;3.6&quot;,file))\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;9176f4fd-4000-11e8-aa7d-f996117ce1ed&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 9176f4fd-4000-11e8-aa7d-f996117ce1ed Version: $LATEST\r\n\/etc\/python\/setting.ini\r\n\/etc\/python\/3.6\/setting.ini\r\nEND RequestId: 9176f4fd-4000-11e8-aa7d-f996117ce1ed\r\nREPORT RequestId: 9176f4fd-4000-11e8-aa7d-f996117ce1ed\tDuration: 0.35 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/if\/\">if\u6587<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef lambda_handler(event, context):\r\n\t\tvalue = 1\r\n\t\tif value == 1:\r\n\t\t\tprint(&quot;value is 1&quot;)\r\n\t\telif value == 2:\r\n\t\t\tprint(&quot;value is 2&quot;)\r\n\t\telif value == 3:\r\n\t\t\tpass\r\n\t\telse:\r\n\t\t\tprint(&quot;value is not 1,2,3&quot;)\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;7c158508-4001-11e8-90fc-11102c6f7f98&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 7c158508-4001-11e8-90fc-11102c6f7f98 Version: $LATEST\r\nvalue is 1\r\nEND RequestId: 7c158508-4001-11e8-90fc-11102c6f7f98\r\nREPORT RequestId: 7c158508-4001-11e8-90fc-11102c6f7f98\tDuration: 0.39 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/while\/\">while\u6587<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef lambda_handler(event, context):\r\n\t\tcounter = 0\r\n\t\twhile counter &lt; 10:\r\n\t\t\tcounter += 1\r\n\t\t\tprint(counter)\r\n\t\t\r\n\t\t# \u30bf\u30a4\u30e0\u30a2\u30a6\u30c8\u306b\u306a\u308b\u307e\u3067\u5b9f\u884c\u3055\u308c\u3066\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u51fa\u529b\u3055\u308c\u305f\r\n\t\twhile True:\r\n\t\t\tprint(&quot;test&quot;)\r\n==========================================================================\r\nResponse:\r\n{\r\n  &quot;errorMessage&quot;: &quot;2018-04-14T16:39:04.666Z 460c8d7e-4002-11e8-80d8-d3914a20416b Task timed out after 30.01 seconds&quot;\r\n}\r\n\r\nRequest ID:\r\n&quot;460c8d7e-4002-11e8-80d8-d3914a20416b&quot;\r\n\r\nFunction Logs:\r\n\r\ntest\r\n....\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/continue\/\">continue<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\ndef lambda_handler(event, context):\r\n\tfor num in range(100):\r\n\t\tif num % 10:\r\n\t\t\tcontinue\r\n\t\t\r\n\t\tprint(num)\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;1504b6c1-4003-11e8-a3ab-67ba43bfb4bb&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: 1504b6c1-4003-11e8-a3ab-67ba43bfb4bb Version: $LATEST\r\n0\r\n10\r\n20\r\n30\r\n40\r\n50\r\n60\r\n70\r\n80\r\n90\r\nEND RequestId: 1504b6c1-4003-11e8-a3ab-67ba43bfb4bb\r\nREPORT RequestId: 1504b6c1-4003-11e8-a3ab-67ba43bfb4bb\tDuration: 0.40 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 22 MB\r\n<\/pre>\n<p><a href=\"https:\/\/www.python-izm.com\/basic\/exception\/\">\u4f8b\u5916\u51e6\u7406<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\nimport sys\r\nimport traceback\r\n\r\ndef lambda_handler(event, context):\r\n\t\r\n\tdef except_test(value1,value2):\r\n\t\tresult = 0\r\n\t\ttry:\r\n\t\t\tresult = value1 + value2\r\n\t\texcept:\r\n\t\t\tprint(&quot;\u8a08\u7b97\u3067\u304d\u307e\u305b\u3093&quot;)\r\n\t\t\traise\r\n\t\tfinally:\r\n\t\t\tprint(&quot;\u8a08\u7b97\u7d42\u4e86&quot;)\r\n\t\r\n\t\treturn result\r\n\t\r\n\tprint(except_test(200,100))\r\n\t\r\n\ttry:\r\n\t\tprint(except_test(200,'100'))\r\n\texcept:\r\n\t\tprint(&quot;Error&quot;)\r\n==========================================================================\r\nResponse:\r\nnull\r\n\r\nRequest ID:\r\n&quot;deb4f5cb-4007-11e8-8bc4-fde8b1a9daf5&quot;\r\n\r\nFunction Logs:\r\nSTART RequestId: deb4f5cb-4007-11e8-8bc4-fde8b1a9daf5 Version: $LATEST\r\n\u8a08\u7b97\u7d42\u4e86\r\n300\r\n\u8a08\u7b97\u3067\u304d\u307e\u305b\u3093\r\n\u8a08\u7b97\u7d42\u4e86\r\nError\r\nEND RequestId: deb4f5cb-4007-11e8-8bc4-fde8b1a9daf5\r\nREPORT RequestId: deb4f5cb-4007-11e8-8bc4-fde8b1a9daf5\tDuration: 0.31 ms\tBilled Duration: 100 ms \tMemory Size: 128 MB\tMax Memory Used: 21 MB\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Python-izm\u306a\u308b\u52c9\u5f37\u306b\u306a\u308b\u30b5\u30a4\u30c8\u3092\u898b\u3064\u3051\u305f\u305f\u3081\u3001AWS Lambda\u3067\u8a66\u3057\u3066\u307f\u305f\u3002 \u57fa\u790e\u7de8 \u6587\u5b57\u5217 def lambda_handler(event, context): testnum = &quot;123&#038; [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[76],"tags":[],"_links":{"self":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2878"}],"collection":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2878"}],"version-history":[{"count":1,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2878\/revisions"}],"predecessor-version":[{"id":2880,"href":"https:\/\/tech.akat.info\/index.php?rest_route=\/wp\/v2\/posts\/2878\/revisions\/2880"}],"wp:attachment":[{"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2878"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2878"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tech.akat.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2878"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}