1. Pythonãšæ¥åå¹çåïŒåºæ¬ãç解ãã
Pythonã¯å€ãã®äŒæ¥ã§æ¥åå¹çåãå®çŸããããã«æ¡çšãããã匷åãªããã°ã©ãã³ã°èšèªã§ããæè»æ§ãšæ¡åŒµæ§ãå ŒãåããããŸããŸãªæ¥åããã»ã¹ãå¹çåããããšãã§ããŸãããã®èšäºã§ã¯ãPythonãçšããŠããžãã¹ããã»ã¹ã®å¹çåãé²ããæ¹æ³ã«ã€ããŠæ¢æ±ããŠãããŸãã
æ¥åå¹çåã«Pythonãåãå ¥ããããšã®åºæ¬ãææ¡ããäºæ¥ã®åé¢ã«ãããæ¹åãå®çŸããããã®ã察話åãã€å®è¡å¯èœãªã¢ãããŒããæäŸããŸããPythonã®æã€ç¹é·ãšçŸå®äžçã§ã®å¿çšäºäŸãéããŠãã®å¯èœæ§ãçŽè§£ããŠãããŸãããã
Pythonãæã€æžãããããšèªã¿ãããã¯ãåå¿è ã§ãç¿åŸã容æã§ãããå°éçãªããã°ã©ãã³ã°ã¹ãã«ããªãã¹ã¿ããã«ãæ¯èŒçç°¡åã«ç解ãããŸãããã®ç¹è³ªã掻ãããæ¥åå¹çåã¯çå®ãªã¹ãããã§é²ããããšãã§ããã®ã§ãã
1.1 Pythonã®æ¥åã§ã®å©çšã±ãŒã¹
ããŒã¿åæãèªåã¬ããŒãçæããŠã§ãã¹ã¯ã¬ã€ãã³ã°ãªã©ãå€å²ã«ãããæ¥åãPythonã§ã®å®è£ ãå¯èœãšãããŠããŸããäŒæ¥ã«ãããæ å ±ç®¡çãã¯ããã顧客ããŒã¿ã®è§£æã財åã¬ããŒãã®èªåäœæãªã©ãæäœæ¥ã«ããæéã®æµªè²»ãæžããããã«Pythonãå©çšããäºäŸãå¢å ããŠããŸãã
ãŸããPythonã¯APIãšã®çµ±åã容æã§ãããããç°ãªããµãŒãã¹ããã©ãããã©ãŒã ãšé£æºããŠãæ°ããªããŒã«ãã¢ããªã±ãŒã·ã§ã³ã®éçºãè¡ããŸãã瀟å ããŒã«ã®éçºããæ¢åã·ã¹ãã ãšã®çµ±åãç°¡çŽ åããæ¥åããã»ã¹ã®èªååããã³æé©åã«è²¢ç®ããŠããŸãã
ããã«ãå®æçãªãããåŠçã®èªååãªã©ã§ãPythonã¯éå®ãããŸããæéã«äŸåããã¿ã¹ã¯ãã¹ã±ãžã¥ãŒã«ããå®è¡ããããšã§åŽåãå€§å¹ ã«åæžããæ¥åã®å¹çãåäžãããã®ã§ãã
1.2 å¹çåã«ãããPythonã®åŒ·ã¿ãšã¯
Pythonã¯ãã®é«ãå¯èªæ§ãšæè»ãªæ§æã®ãããã§ãã³ãŒãã®ã¡ã³ããã³ã¹ã容æã§ããããããžã§ã¯ãã«å¿ èŠãªæéãåæžããŸãããªãã¡ã¯ã¿ãªã³ã°ãæ©èœè¿œå ãçŽ æ©ãè¡ããããžãã¹ãå€åããããŒãºã«è¿ éã«å¯Ÿå¿å¯èœã§ãã
ããã«ã巚倧ãªã³ãã¥ããã£ã«ãããµããŒããšå¹ åºãã©ã€ãã©ãªãPythonã®å€§ããªåŒ·ã¿ã§ããããŒã¿åæã«ã¯NumPyãPandasãæ©æ¢°åŠç¿ã«ã¯scikit-learnãªã©ãå°éçãªäœæ¥ã«ç¹åããã©ã€ãã©ãªã®ååšããå°éç¥èã®ãªãè ã§ãé«åºŠãªåŠçãå®è£ ããéãéããŠããŸãã
ãããŠãã¯ãã¹ãã©ãããã©ãŒã 察å¿ã§ããããšãèŠéããªãå©ç¹ã§ããåãPythonã®ã³ãŒãããWindowsãMacãLinuxã§åæ§ã«å®è¡ã§ãããããç°ãªãã·ã¹ãã éã§ã®ç§»è¡ãå ±æã容æã«ãªãã®ã§ãã
1.3 æ¥åããã»ã¹ã«Pythonãå°å ¥ããã¡ãªãã
Pythonãæ¥åããã»ã¹ã«å°å ¥ãããšãäœæ¥ã®èªååãšå¹çåãå®çŸã§ããã ãã§ãªããäŒæ¥ã®ææ決å®æ¯æŽã«ãããŠãéèŠãªåœ¹å²ãæãããŸããããŒã¿é§ååã®ã¢ãããŒããåãããšã§ãããæ£ç¢ºã§è¿ éãªææ決å®ãå¯èœã«ãªããŸãã
ãŸãã瀟å ã§ã®ã¹ãã«å ±æãšçµ±äžãããæè¡ã¹ã¿ãã¯ã®æ¡çšã«ãã£ãŠãããŒã éã®ã³ãã¥ãã±ãŒã·ã§ã³ãã¹ã ãŒãºã«é²ã¿ãŸããPythonã®ã·ã³ãã«ãªæ§æãããããéææ§ã¯ãã¡ã³ããŒéã®ç解ãæ·±ããããå¹æçãªã³ã©ãã¬ãŒã·ã§ã³ãä¿é²ããŸãã
ããã«ãPythonã§éçºãããããŒã«ãã¢ããªã±ãŒã·ã§ã³ã¯ãå¿ èŠã«å¿ããŠè¿ éã«ã«ã¹ã¿ãã€ãºãå¯èœã§ããããã«ãããæ¥åã®ç¹æ§ãèŠä»¶ã®å€åã«æè»ã«é©å¿ããç¶ç¶çãªããã»ã¹æ¹åãè¡ãããšãã§ããŸãã
1.4 Pythonå°å ¥åã®æºåãšæ³šæç¹
Pythonãå°å ¥ããåã«ã¯ãçŸåšã®æ¥åãããŒã®åæãšãPythonãã©ã®ããã«å¹æãçºæ®ãããã®æ€èšãå¿ èŠã§ããããã»ã¹ã®åã¹ããããæ確ã«ããèªååãæ¹åã®äœå°ãæ¢ãããšãèå¿ã§ãã
ãŸããé©åãªããŒãžã§ã³ã®Pythonã®éžæãšã䜿çšããå€éšã©ã€ãã©ãªã®äºææ§ã®ç¢ºèªãéèŠã§ããã·ã¹ãã ç°å¢ã«åœ±é¿ãäžããªããããããŒãžã§ã³ç®¡çããŒã«ã䜿çšããŠãç°ãªããããžã§ã¯ãã§ã®ç°å¢ã®è¡çªãé²ãããšãèæ ®ãã¹ãã§ãã
æåŸã«ãã¹ã¿ããã®ãã¬ãŒãã³ã°ããµããŒãäœå¶ã®æ§ç¯ãæ¬ ãããªãèŠçŽ ã§ããæ°ããããŒã«ãæè¡ã®å°å ¥ã«éããŠã¯ããŠãŒã¶ãŒãžã®ç ä¿®ãé©åãªããã¥ã¡ã³ããŒã·ã§ã³ã®æŽåããã¹ã ãŒãºãªç§»è¡ãšå®çãæ¯ããéèŠãªæ±ãšãªããŸãã
2. Pythonã¹ã¯ãªããã«ããç¹°ãè¿ãäœæ¥ã®èªåå
å€ãã®ãªãã£ã¹ã¯ãŒã«ãŒãçŽé¢ããåé¡ã®äžã€ããæéã奪ãç¹°ãè¿ãäœæ¥ã®ååšã§ããç°¡åãªäœæ¥ã§ãã£ãŠããäœåºŠãäœåºŠãå®è¡ããããšã§ãéå¹çãªæéã®äœ¿ãæ¹ãšãªãããŸããããã§Pythonãç»å Žããããã§ãããçµã¿èŸŒã¿ã©ã€ãã©ãªãå€éšã¢ãžã¥ãŒã«ãå©çšããããšã§ããããã®äœæ¥ãèªååããæ¥åå¹çåã«å¯äžããŸãã
Pythonã®åºæ¬ææ³ãç解ããå°ãã®ããã°ã©ãã³ã°çµéšããããã°ãæ§ã ãªç¹°ãè¿ãäœæ¥ãèªååããã¹ã¯ãªãããæžãããšãå¯èœã§ããäŸãã°ããã¡ã€ã«ã®ã³ããŒã移åãããŒã¿ã®ãã©ãŒãããå€æŽãå®æçãªã¬ããŒãçæãªã©ãå«ãŸããŸãã
ãããã®äœæ¥ãèªååããããšã§ãåŽåæéãåæžããããåµé çãªæ¥åã«éäžããæéãäœãåºãããšãã§ããã®ã§ãã以äžã®ã»ã¯ã·ã§ã³ã§ã¯ãå€ãã®ããžãã¹ã§å³æŠåãšãªãèªååææ³ã玹ä»ããŠãããŸãã
2.1 ããŒã¿å ¥åäœæ¥ã®èªååæ¹æ³
ããŒã¿å ¥åã¯æéããããã誀ããçããããäœæ¥ã§ããPythonã䜿ã£ãèªååã«ãããæéã®ç¯çŽãšç²ŸåºŠã®åäžãå³ãããšãã§ããŸããããšãã°ãExcelãã¡ã€ã«ããŠã§ããã©ãŒã ãžã®å ¥åãèªååããã¹ã¯ãªãããPythonã§ç°¡åã«èšè¿°ã§ããŸãã
Pythonã®ãopenpyxlãã¢ãžã¥ãŒã«ããpandasãã©ã€ãã©ãªã䜿çšãããšãExcelã¹ãã¬ããã·ãŒãã®èªã¿æžããèªååããããšãã§ããŸããããã«ãããæ¯åæäœæ¥ã§ããŒã¿ãå ¥åãã代ããã«ãäžæ¬ã§ã®ããŒã¿åŠçãå¯èœã«ãªããŸãã
ãŸãããSeleniumãããRequestsããªã©ã®ã©ã€ãã©ãªãçšããŠããŠã§ãäžã®ãã©ãŒã ãžã®èªåå ¥åãå®çŸã§ããŸããå ¥åããŒã¿ãäºåã«çšæããŠãããã¹ã¯ãªãããå®è¡ããã ãã§ãç ©éãªããŒã¿å ¥åãã解æŸãããã®ã§ãã
2.2 ãã¡ã€ã«ãšããŒã¿ã®ç®¡çãå¹çå
ãã¡ã€ã«ç®¡çã®èªååã¯ãæ¥ã å¢ãç¶ããææžãããŒã¿ã®æŽçã«åœ¹ç«ã¡ãŸããPythonã¹ã¯ãªãããå©çšããããšã§ããã¡ã€ã«ã®ãªããŒã ãæŽçãããã¯ã¢ãããªã©ãèšç»çã«ããã€èªåã§è¡ããããã«ãªããŸãã
äŸãã°ããosãã¢ãžã¥ãŒã«ããshutilãã¢ãžã¥ãŒã«ã䜿ã£ãŠãã¡ã€ã«ã·ã¹ãã ã®æäœãèªååããããšãã§ããŸãããããã䜿ãããªãã°ããã¡ã€ã«ã®ç§»åãã³ããŒããã£ã¬ã¯ããªã®äœæãšãã£ãäœæ¥ãããã°ã©ã çã«è¡ãããšãå¯èœã§ãã
ãŸãã倧éã®ãã¡ã€ã«ããç¹å®ã®æ¡ä»¶ã«åèŽãããã®ãæ€çŽ¢ãããããã¡ã€ã«å 容ã«åºã¥ããŠèªåçã«ã«ããŽãªåããè¡ããããªåŠçããPythonã¹ã¯ãªããã«ãã£ãŠå®çŸã§ããŸãããã¡ã€ã«ç®¡çã®èªååã¯ãããžãã¹ã«ãããæ å ±æŽçã®å¹çãå€§å¹ ã«æ¹åããŸãã
2.3 å®æã¬ããŒãçæã®èªåå
äŒç€Ÿã«ãããå®æã¬ããŒãã¯ãå€ãã®å Žåãäžå®ã®ãã©ãŒãããã«æ²¿ã£ãŠããŒã¿ãéèšãå ±åããå¿ èŠããããŸããPythonã䜿ãã°ããããã®ã¬ããŒãçæäœæ¥ãå®å šã«èªååã§ããŸããããŒã¿ã®åéããåæããããŠã¬ããŒãã®ãã©ãŒããããŸã§äžé£ã®æµããã³ãŒãåããããšãå¯èœã§ãã
ãpandasãããmatplotlibãã®ãããªã©ã€ãã©ãªãã䜿ãããšã§ãããŒã¿ã®çµ±èšåŠçãã°ã©ãçæãèªååã§ããŸãããŸãããJinja2ããã³ãã¬ãŒããšã³ãžã³ã掻çšããããšã§ãããŒã¿ãå®åã®ã¬ããŒãææžã«ç°¡åã«æ¿å ¥ããããšãå¯èœã«ãªããŸãã
ãããã®èªååãããã¹ã¯ãªããã¯ãå®æçã«å®è¡ãããããšãå€ããcronãžã§ããã¿ã¹ã¯ã¹ã±ãžã¥ãŒã©ã«ãã£ãŠå®æå®è¡ããããèšå®ããããšã§ãæ¯åã®æéãçãããšãã§ããŸãã
2.4 ã¡ãŒã«éä¿¡ã®èªååãã¯ããã¯
ããžãã¹ã«ãããã³ãã¥ãã±ãŒã·ã§ã³ã®å€§éšåããã¡ãŒã«ã«ãã£ãŠè¡ãããŸããå®åçãªã¡ãŒã«ã®éä¿¡äœæ¥ã¯ãèªååããããšã«ãããæéã®ç¯çŽã¯ãã¡ããããã¥ãŒãã³ãšã©ãŒã®æžå°ã«ãã€ãªãããŸãã
Pythonã®ãsmtplibãã䜿çšããããšã§ãã¡ãŒã«ãµãŒããŒãžã®æ¥ç¶ãã¡ãŒã«éä¿¡ã®ããã»ã¹ãããã°ã©ã çã«å¶åŸ¡ããããšãã§ããŸãããemailãã©ã€ãã©ãªã䜵çšããŠãã¡ãŒã«ã®æ¬æäœæãæ·»ä»ãã¡ã€ã«ã®åŠçãèªååããããšãå¯èœã§ãã
ããã«ããjinja2ãã䜿çšããŠã¡ãŒã«ãã³ãã¬ãŒããäœæããã°ãå€åããæ å ±ãå·®ãæ¿ããªããåããã©ãŒãããã®ã¡ãŒã«ã倧éã«éä¿¡ããããšã容æã§ãããããã®ãã¯ããã¯ãé§äœ¿ããããšã§ãæ¥åã«é¢ããã³ãã¥ãã±ãŒã·ã§ã³ãããå¹ççã«è¡ãããšãã§ããã§ãããã
3. ããŒã¿åæãå éããPythonã®ã©ã€ãã©ãª
Pythonã¯ããã®æè»æ§ãšåŒ·åãªã©ã€ãã©ãªã«ãããããŒã¿åæãšæ¥åå¹çåã®åéã§éåžžã«äººæ°ããããŸããäžé£ã®å°éçãªããŒã«ãå©çšããããšã§ãéèŠãªã€ã³ãµã€ãã®æœåºãåŠçé床ã®åäžããããŠããŒã¿ã®èŠèŠçè¡šçŸãå¹çããè¡ããŸããæ¬èšäºã§ã¯ãæ¥åããã»ã¹ãæ¹åããããã®Pythonã©ã€ãã©ãªã«çŠç¹ãåœãŠãŠè§£èª¬ããŸãã
ãããã®ã©ã€ãã©ãªã¯ãããã©ãŒãã³ã¹ãšãããã¯ãã£ããã£ã®äž¡æ¹ãåäžãããæ©èœãæäŸããŸããPythonã§ã®ããŒã¿åæã¯ãæ°ã ã®ã©ã€ãã©ãªãçµã¿åãããããšã«ããããã匷åã«ãªããŸããæ©èœæ§ãšäœ¿ãåæã®ãã©ã³ã¹ãåããªããããããã®ã©ã€ãã©ãªã«ã¯ããããç¹åãã圹å²ããããŸãã
ããŒã¿åæãããžã§ã¯ãã§å¿ èŠãšãªãåŠçã¯å€å²ã«ããããŸãããããŒã¿ã®åã蟌ã¿ãå å·¥ãèšç®ããããŠå¯èŠåãšããåºæ¬çãªã¹ãããããããŸãã以äžã§ã¯ããããã®åã¹ãããã§åœ¹ç«ã€ãå®è©ã®ããã©ã€ãã©ãªã玹ä»ããŸãã
3.1 Pandasã§ããŒã¿åŠçãå¹çå
Pandasã¯ã衚圢åŒã®ããŒã¿ãæ±ãããã®åŒ·åãªã©ã€ãã©ãªã§ããExcelãCSVãã¡ã€ã«ãªã©ã®å€æ§ãªããŒã¿ãœãŒã¹ããããŒã¿ãåã蟌ã¿ãå¹ççãªããŒã¿æäœãå¯èœã«ããŸããããŒã¿ã¯ã¬ã³ãžã³ã°ãæ¬ æããŒã¿ã®æ±ããããŒã¿ã®çµåãšãã£ãããã»ã¹ããPandasãçšããããšã§åçŽåãããŸãã
Pandasã¯DataFrameãšããããŒã¿æ§é ãäžå¿ã«æ§ç¯ãããŠããŸããããã¯ãã©ãã«ä»ãããã軞ãåããäºæ¬¡å ã®ããŒã¿æ§é äœã§ãããSQLããŒãã«ãExcelã¹ãã¬ããã·ãŒããšçžæ§ãè¯ãã§ããã©ãã«ã«åºã¥ãã¹ã©ã€ã·ã³ã°ãéçŽããããŠãã£ã«ã¿ãªã³ã°ãçŽæçã«è¡ãããšãã§ããŸãã
ããã«ãPandasã¯æéç³»åããŒã¿ã®åæã«ãããŠã匷åãªæ©èœãæããŠããŸããæ¥æã®å€æãåšææ§ããŒã¿ã®æ±ãã«ç¹åããæ©èœãæèŒãããŠãããéèåæçã§ã®å©çšã«é©ããŠããŸããPandasã䜿çšããããšã§ãããŒã¿ã«å¯ŸããæäœãçŽæçãã€è¿ éã«å®è¡ã§ãããããæ¥åå¹çãå€§å¹ ã«åäžããŸãã
3.2 NumPyã掻çšããæ°å€èšç®ã®é«éå
NumPyã¯æ°å€èšç®ãå¹çåããã©ã€ãã©ãªã§ãããç§åŠæè¡èšç®ã®åºç€ãæäŸããŸãã倧èŠæš¡ãªæ°å€ããŒã¿ã®æäœãšèšç®ããé«éã§è¡ãããšãã§ããŸãããã¯ãã«ãè¡åæŒç®ã«é¢ããŠé«åºŠãªæ©èœãåããŠããããããã¯çŽæ¥çãªPythonã®ãªã¹ãæäœããããã£ãšéãè¡ããŸãã
NumPyã®äžæ žã¯ãé åãªããžã§ã¯ãndarrayã§ãããã®ããŒã¿æ§é ã¯å€æ¬¡å é åã®å¹ççãªæäœãå¯èœã«ããæ°å€èšç®ã®ããã©ãŒãã³ã¹ãé£èºçã«åäžãããŸãããŸãããããŒããã£ã¹ãã£ã³ã°ãšãã£ãé«åºŠãªæ©èœã«ããã圢ç¶ã®ç°ãªãé åéã§ã®èšç®ãç°¡åã«è¡ããŸãã
NumPyã¯ãPandasãä»ã®ããŒã¿åæã©ã€ãã©ãªãšçµã¿åãããŠäœ¿çšãããããšãå€ãã§ãããã®çç±ã¯ãããŒã¿ãã¬ãŒã å ã®æ°å€èšç®ãé«éåããããã«ããããã®ã©ã€ãã©ãªãå éšã§NumPyé åã䜿çšããŠããããã§ãããã®ã·ãŒã ã¬ã¹ãªé£æºã«ãããè€éãªããŒã¿åæãåçŽãã€è¿ éã«å®æœããããšãå¯èœãšãªããŸãã
3.3 Matplotlibã«ããããŒã¿å¯èŠåã®èªåå
Matplotlibã¯ãPythonã§æããã䜿ãããŠããããŒã¿å¯èŠåã©ã€ãã©ãªã®äžã€ã§ããã°ã©ãããã£ãŒããäœæããããšã§ãããŒã¿ã®åŸåãçŽæçã«ææ¡ãããããã¬ãŒã³ããŒã·ã§ã³è³æãå å®ããããã§ããŸãããã®ã©ã€ãã©ãªã®è±å¯ãªããããæ©èœã«ãããããŒã¿ã®æå³ãèŠèŠçã«è¡šçŸããããšãå¯èœã«ãªããŸãã
Matplotlibã¯ã«ã¹ã¿ãã€ãºã®èªç±åºŠãé«ããã»ãŒããããçš®é¡ã®ã°ã©ããçæããããšãã§ããŸããç·ã°ã©ããæ£åžå³ããã¹ãã°ã©ã ãããŒãã£ãŒãããšã©ãŒããŒãç®±ã²ãå³ãšãã£ãå€çš®å€æ§ãªã°ã©ããäœæã§ããå¿ èŠã«å¿ããŠããããã®ã¹ã¿ã€ã«ãã«ã©ãŒãããã®èª¿æŽãè¡ããŸãã
ãããžã§ã¯ãã®å ±åãçµæã®å ±æã«ãããŠãèŠèŠçãªæ å ±ã¯éåžžã«éèŠã§ããMatplotlibã掻çšããããšã§ãããŒã¿ã話ãã説åŸåãå¢ããŸããã¹ã¯ãªãããäžåºŠæžããŠããã°ãåãçš®é¡ã®ããŒã¿ã»ããã«å¯ŸããŠç¹°ãè¿ãåããããããçæããããšãå¯èœãšãªããããã«ããæéãç¯çŽããªããäžè²«æ§ã®ããåºåãæäŸã§ããŸãã
3.4 Scipyã§ç§åŠæè¡èšç®äœæ¥ãç°¡ç¥å
Scipyã¯Pythonã®ç§åŠæè¡èšç®ãæ ãå¥ã®ããŒã©ã€ãã©ãªã§ããæé©åãç·åœ¢ä»£æ°ãç©åãšãã£ãããå°éçãªæ°å€èšç®ãå®æœããããã®å€æ§ãªããŒã«ãå«ãŸããŠããŸãããã®ã©ã€ãã©ãªãçšããããšã§ãè€éãªæ°åŠåŠçãå¹æçã«æ±ãããšãã§ããŸãã
Scipyã¯ãNumPyã«åºã¥ããŠæ§ç¯ãããŠããããã®æ°åŠçæ©èœãæ¡åŒµããŠããŸããäŸãã°ãç·åœ¢ååž°ãä¿¡å·åŠçãç»ååŠçãšãã£ãç£æ¥çã§åºç¯ã«ãããã¢ããªã±ãŒã·ã§ã³ã«åœ¹ç«ã¡ãŸãããããã®åŠçãå®è£ ããããã®ç¹éãªã³ãŒãã£ã³ã°ãå¿ èŠãšãããæšæºåãããAPIãéããŠã¢ã¯ã»ã¹ããããšãã§ããŸãã
Scipyã¯ãŸããç§åŠæè¡èšç®ã«é©ããé«åºŠãªããŒã¿æ§é ãæäŸããŸããããšãã°ãsparse matrixïŒçè¡åïŒã¯ã¡ã¢ãªå¹çãè¯ããæ å ±ç§åŠãéåç©çåŠãªã©ã¡ã¢ãªèŠæ±ãå³ããåéã§æŽ»çšãããŸãããããã®é«åºŠãªããŒã«ã«ãããScipyã¯ç 究è ããšã³ãžãã¢ã«ãšã£ãŠè²Žéãªè³æºãšãªã£ãŠããŸãã
4. ãŠã§ãã¹ã¯ã¬ã€ãã³ã°ã§æ å ±åéãèªåå
ãŠã§ãã¹ã¯ã¬ã€ãã³ã°ã¯ãã€ã³ã¿ãŒãããäžã®æ å ±ãèªåçã«åéããæè¡ã§ããäŒæ¥ãå人ãæäœæ¥ã§ããŒã¿ãéããã®ã¯å¹çãæªããç¹ã«å€§éã®ããŒã¿ãæ±ãå Žåã«ã¯æéãšåŽåã®æµªè²»ã«ã€ãªãããŸãã
Pythonã¯ããã®æè»æ§ãšè±å¯ãªã©ã€ãã©ãªã«ãããŠã§ãã¹ã¯ã¬ã€ãã³ã°ã«æé©ãªèšèªã§ãããæ¥åããã»ã¹ã®å¹çåã«å€§ãã«åœ¹ç«ã¡ãŸãããŠã§ãã¹ã¯ã¬ã€ãã³ã°ãå©çšããããšã§ãäŒæ¥ã¯ããŒã±ãã£ã³ã°ã®ããã®åžå Žåæãã競å調æ»ãäŸ¡æ Œæ¯èŒãªã©æ§ã ãªæ å ±ã®èªååéãè¡ãããšãã§ããŸãã
ãã®ã»ã¯ã·ã§ã³ã§ã¯ããŠã§ãã¹ã¯ã¬ã€ãã³ã°ã®åºæ¬ããã®å®è£ æ¹æ³ããããŠããã«äŒŽãæ³çãªã¹ã¯ãšãã®å¯Ÿçã«ã€ããŠè©³ãã説æããŸãã
4.1 ãŠã§ãã¹ã¯ã¬ã€ãã³ã°ãšã¯äœã
ãŠã§ãã¹ã¯ã¬ã€ãã³ã°ã¯ãç¹å®ã®ãŠã§ãããŒãžããããŒã¿ãæœåºãããããå©çšå¯èœãªåœ¢åŒã«å€æããããã»ã¹ãæããŸããHTMLãJavaScriptã§æ§ç¯ããããŠã§ããµã€ãããå¿ èŠãªããŒã¿ãæãåºãããšã«ãããæçšãªæ å ±åéãè¡ãã®ã§ãã
ãã®ããã»ã¹ã¯ããã°ã©ã ã«ãã£ãŠèªååãããŠããã人ã®ä»å ¥ãæå°éã«æããããšãã§ãããããæéã®ç¯çŽãšå¹çåã«å¯äžããŸããPythonã¯ãã®ããã»ã¹ãç°¡åã«ããå€ãã®ã©ã€ãã©ãªïŒBeautiful Soupãlxmlãªã©ïŒãæäŸããŸãã
äžè¬ã«ããŠã§ãã¹ã¯ã¬ã€ãã³ã°ã¯æ å ±ã®æ€çŽ¢ãåéããããŠåŸã®åæã®ããã«å©çšãããŸããããŒã±ãã£ã³ã°ã®ãªãµãŒãã競åä»ç€Ÿã®ã¢ãã¿ãªã³ã°ããœãŒã·ã£ã«ã¡ãã£ã¢ã®ãã¬ã³ãåæãªã©ããã®äžäŸã§ãã
4.2 Beautiful SoupãšSeleniumã®æŽ»çšæ³
Beautiful Soupã¯ãPythonã§æãåºã䜿ãããHTMLãšXMLãã¡ã€ã«ããããŒã¿ãæãåºãããã®ã©ã€ãã©ãªã§ããã¿ã°ã«åºã¥ããæ€çŽ¢ãDOMã®è§£æãšããã²ãŒã·ã§ã³ã容æã§ãããã³ãŒãã£ã³ã°ã®æéãå€§å¹ ã«åæžããŸãã
å¯Ÿç §çã«Seleniumã¯ããŠã§ããã©ãŠã¶ã®èªåæäœã«ç¹åããããŒã«ã§ããããã䜿çšããããšã§ãJavaScriptã«ãã£ãŠåçã«çæãããã³ã³ãã³ããããŠãŒã¶ãŒã®ã¢ã¯ã·ã§ã³ïŒã¯ãªãã¯ãã¹ã¯ããŒã«ãªã©ïŒãå¿ èŠãªããŒãžãããããŒã¿ãæœåºããããšãã§ããŸãã
é£æºããŠäœ¿çšããããšã«ãããBeautiful Soupã§å®¹æã«ã¢ã¯ã»ã¹ã§ããªãåçãªãµã€ãã®ã¹ã¯ã¬ã€ãã³ã°ãå¯èœã«ãªããããåºç¯å²ã®ãŠã§ãããŒãžããæ å ±ãåéããããšãå¯èœã§ãããããã®ããŒã«ã¯å¹ççãªãŠã§ãã¹ã¯ã¬ã€ãã³ã°ãå®çŸããããã«éèŠãªåœ¹å²ãæãããŸãã
4.3 APIãå©çšããããŒã¿ååŸæ¹æ³
APIïŒApplication Programming InterfaceïŒã䜿çšããããšã§ããŠã§ããµã€ããæäŸããæ£åŒãªã«ãŒããéããŠããŒã¿ãååŸããããšãã§ããŸããå€ãã®ãŠã§ããµãŒãã¹ã¯ãããŒã¿ã®æœåºãç®çãšããAPIãæäŸããŠãããããã«ãã確å®ãã€å®å šã«æ å ±ãååŸããããšãå¯èœã«ãªããŸãã
Pythonã§APIãå©çšããå Žåãrequestsãªã©ã®ã©ã€ãã©ãªãå©çšããŠHTTPãªã¯ãšã¹ããè¡ããè¿ãããJSONãXMLããŒã¿ã解æããŠå¿ èŠãªæ å ±ãæœåºããŸãããã®æ¹æ³ã¯ãŠã§ãã¹ã¯ã¬ã€ãã³ã°ã«æ¯ã¹ãŠãµãŒããŒãžã®è² è·ãå°ãªãããŠã§ããµã€ãããçŽæ¥æ å ±ãåŒãåºããããè¿ éãã€å¹ççãªå Žåãå€ãã§ãã
ããããAPIã«ã¯äœ¿çšã§ããåæ°ãååŸã§ããããŒã¿éã«å¶éãããããšãå€ããã¹ã¯ã¬ã€ãã³ã°ãšäœµçšããããšã§æé©ãªçµæãåŸãããšãã§ããŸãã
4.4 ã¹ã¯ã¬ã€ãã³ã°ã®æ³çãªã¹ã¯ãšå¯Ÿç
ãŠã§ãã¹ã¯ã¬ã€ãã³ã°ã¯æ³çãªèŠ³ç¹ããåé¡èŠãããããšããããç¹ã«ä»è ã®èäœæš©ã䟵害ããããŒã¿ã®ååŸãããµãŒãã¹å©çšèŠçŽã«åããè¡çºã«ã¯åå泚æãå¿ èŠã§ãã
ã¹ã¯ã¬ã€ãã³ã°ããéã«ã¯ãååœã®æ³ä»€ããµã€ãã®å©çšèŠçŽãéµå®ããããšã倧åã§ããrobots.txtãã¡ã€ã«ã確èªãããµã€ãåŽãã¯ããŒã©ãŒããããã®ã¢ã¯ã»ã¹ãçŠæ¢ããŠããªããã確ãããå¿ èŠããããŸãããŸãããµã€ãã«éå°ãªè² è·ããããªãããã«ã¢ã¯ã»ã¹é »åºŠãå¶åŸ¡ããããšãéèŠã§ãã
é©åãªã¹ã¯ã¬ã€ãã³ã°ã¯ããŒã¿åæãæ¥åå¹çåã«å¯äžããŸããããã®éã¯åžžã«æ³ç責任ãæèããå«ççãªæ¹æ³ã§è¡ãããã«ããŸããããé©åãªèš±å¯ãååŸããããããŒã¿äœ¿çšã®ç®çãæ確ã«ãããªã©ãæ éãªåãçµã¿ãæ±ããããŸãã
5. Pythonã®ãã¬ãŒã ã¯ãŒã¯ã䜿ã£ãæ¥åã¢ããªã±ãŒã·ã§ã³éçº
ããžãã¹ã®ç«¶äºåãé«ããããã«ã¯ãæ¥åã®å¹çåã¯éåžžã«éèŠã§ããPythonã¯å€æ§ãªãã¬ãŒã ã¯ãŒã¯ãæäŸããŠããããããã䜿çšããããšã§æ¥åããã»ã¹ãé©æ°ããããã®ã¢ããªã±ãŒã·ã§ã³éçºãå¯èœã«ãªããŸããéçºè ãã¡ã¯ãããã®ããŒã«ãé§äœ¿ããŠãã¿ã€ã ãªãŒãã€å¹ççã«æ©èœãå®è£ ããæ¥åãå¹çåããŸãã
é©åãªãã¬ãŒã ã¯ãŒã¯ãéžã¶ããšã¯ãã¢ããªã±ãŒã·ã§ã³ã®ç®çãèŠæš¡ã«å¿ããæé©ãªéçºç°å¢ãæŽåããããšã«çŽçµããŸãããã®éšåã§ã¯ãPythonã§å©çšã§ããããã€ãã®ãã¬ãŒã ã¯ãŒã¯ãšãããã䜿çšããæ¥åã¢ããªã±ãŒã·ã§ã³éçºã«ã€ããŠæãäžããŠãããŸãã
è±å¯ãªã©ã€ãã©ãªãšé«ãæè»æ§ãããPythonã¯æ¥åå¹çåãç®æãéçºè ã«éžã°ããèšèªã§ããããã¬ãŒã ã¯ãŒã¯ã掻çšããéçºã¯ãã®æµããå éãããŠããŸãããããããããåãã¬ãŒã ã¯ãŒã¯ã®ç¹åŸŽãšå©ç¹ã«ã€ããŠèŠãŠãããŸãããã
5.1 Djangoã§ã®ãŠã§ãã¢ããªã±ãŒã·ã§ã³éçº
Djangoã¯ãthe web framework for perfectionists with deadlinesããšèªç§°ããŠããããã®ã¹ããŒã¬ã³ã瀺ãéããè¿ éãªéçºãšåŠ¥åã®ãªãé«å質ãªãŠã§ãã¢ããªã±ãŒã·ã§ã³å¶äœãäž¡ç«ããŸããDjangoã¯ãã«ã¹ã¿ãã¯ãã¬ãŒã ã¯ãŒã¯ã§ãããããŒã¿ããŒã¹æäœãã»ãã¥ãªãã£ãŒå¯ŸçããŠãŒã¶ãŒã¢ã«ãŠã³ã管çãšãã£ãäžè¬çãªãŠã§ãéçºã¿ã¹ã¯ãå¹ åºãã«ããŒããŠããŸãã
äŒæ¥ã®æ¥å管çã·ã¹ãã ã顧客管çã·ã¹ãã ãªã©ãè€éæ§ã®é«ãã¢ããªã±ãŒã·ã§ã³éçºã«ãããŠDjangoã¯åãçºæ®ããŸããDjangoã®ORM(Object-Relational Mapping)ã·ã¹ãã ã¯ãããŒã¿ããŒã¹èšèšãã¯ãšãªã®æœè±¡åãå¹æçã«è¡ããéçºè ãããžãã¹ããžãã¯ã«éäžã§ããç°å¢ãæäŸããŸãã
ãŸããDjangoã«ã¯åŒ·åãªç®¡çã€ã³ã¿ãŒãã§ãŒã¹ãæšæºã§åãã£ãŠãããéæè¡ã¹ã¿ããã§ã容æã«ããŒã¿ã®ç®¡çãå¯èœã§ãããã®å©ç¹ã¯æ¥åã®è¿ éåãšã·ã¹ãã ã®éçšå¹çã®åäžã«è²¢ç®ããŸãã
5.2 Flaskã䜿ã£ãå°èŠæš¡ã¢ããªã±ãŒã·ã§ã³
Flaskã¯ãmicroframeworkããšç§°ãããã»ã©ãã·ã³ãã«ã§è»œéãªãã¬ãŒã ã¯ãŒã¯ã§ããFlaskã¯å¿ èŠæå°éã®ã³ã¢æ©èœãæäŸããè¿œå ã®æ©èœã¯æ¡åŒµããã©ã°ã€ã³ãéããŠç°¡åã«è¿œå ã§ããèšèšã«ãªã£ãŠããŸããå°èŠæš¡ãããžã§ã¯ãããããã¿ã€ãã³ã°ã§ã®äœ¿çšã«æé©ã§ãè¿ éãªéçºãå¯èœã§ãã
Flaskã¯ã¬ã¹ããã«APIã®äœæã«ãé©ããŠãããæ¥åã¢ããªã±ãŒã·ã§ã³ãä»ã®ã·ã¹ãã ããµãŒãã¹ãšé£æºããå Žåã«åœ¹ç«ã¡ãŸãããã®ãã¬ãŒã ã¯ãŒã¯ã䜿çšããããšã§ãã·ã³ãã«ãªããã匷åãªãŠã§ãã€ã³ã¿ãŒãã§ãŒã¹ãçŽ æ©ãæ§ç¯ããããšãã§ããŸãã
ãŸããFlaskã®æ±çšæ§ã«ãããã«ã¹ã¿ã ããŒãºã«åãããã¢ããªã±ãŒã·ã§ã³ã®æé©åããããããšããå©ç¹ããããŸããå°ããªã¢ããªã±ãŒã·ã§ã³ããå§ããŠãåŸã«æ¡å€§ããŠãããããªãããžã§ã¯ãã«ã¯ç¹ã«é©ããŠããŸãã
5.3 Streamlitã«ããããŒã¿ããã·ã¥ããŒãæ§ç¯
ããŒã¿ããžã¥ã¢ã©ã€ãŒãŒã·ã§ã³ã¯ãæ¥çã«ãããŠæŠç¥çææ決å®ãå©ããéèŠãªèŠçŽ ã§ããStreamlitã¯Pythonã®ããŒã¿ãµã€ãšã³ã¹ã³ãã¥ããã£ãŒããé«ãè©äŸ¡ãåŸãŠãããã¬ãŒã ã¯ãŒã¯ã§ããããã«ãªã³ãŒãã§ã€ã³ã¿ã©ã¯ãã£ããªããŒã¿ããã·ã¥ããŒããè¿ éã«æ§ç¯ããããšãã§ããŸãã
ã³ãŒãã£ã³ã°ã®å°éç¥èãå°ãªãåŸæ¥å¡ã§ããStreamlitã®çŽæçãªAPIãçšããŠãããŒã¿ã®æ¢çŽ¢ãšå ±æãç°¡åã«ã§ããŸããããã«ãããããžãã¹ãŠãŒã¶ãŒãçŽæ¥ããŒã¿ã«è§ŠããæŽå¯ãåŸãããšãã§ãããããåæçµæãçŽ æ©ãææ決å®ã«åæ ãããããšãå¯èœã«ãªããŸãã
Streamlitã¯ãªã¢ã«ã¿ã€ã ã§ã®ããŒã¿æŽæ°ã«ã察å¿ããŠãããææ°ã®æ å ±ã«åºã¥ããããã·ã¥ããŒãã§ããžãã¹ç°å¢ã®å€åã远跡ããããšãã§ããŸããããã¯åžå Žã®ååãæ¶è²»è ã®è¡åãçŽ æ©ãææ¡ããããžãã¹æŠç¥ã調æŽããéã«éåžžã«éèŠã§ãã
5.4 æ¥åã¢ããªéçºã®ãã¹ããã©ã¯ãã£ã¹
æ¥åã¢ããªã±ãŒã·ã§ã³ãéçºããéã«ã¯ããã æè¡ã䜿çšããã ãã§ãªããé©åãªéçºãã©ã¯ãã£ã¹ã®éµå®ãæåã®éµã§ããå šããã»ã¹ã«ãããã³ãŒãã®å質ãç¶æããå¯èªæ§ãä¿å®æ§ãé«ããããšãéèŠã§ãã
ãŸãåãã«ãæ©èœããšã®ã¢ãžã¥ãŒã«åãã³ãŒãã®åå©çšãæèããããšã§ãéçºã®å¹çåãšãã°ã®æžå°ã«ã€ãªãããŸãããŸããããŒãžã§ã³ç®¡çã·ã¹ãã ã䜿çšããããšã§ãã³ãŒãã®å€æŽå±¥æŽã远跡ãããããªããããŒã ã§ã®ååäœæ¥ã容æã«ãªããŸãã
æåŸã«ãèªååããããã¹ãã®å®æœã¯ãã¢ããªã±ãŒã·ã§ã³ã®ä¿¡é Œæ§ãä¿ã€ããã«äžå¯æ¬ ã§ããæç¶çã€ã³ãã°ã¬ãŒã·ã§ã³(CI)ãæç¶çããªããªãŒ(CD)ã®å®è·µã¯ããããã€ã¡ã³ãããã»ã¹ãå¹çåããé«é »åºŠã§ã®ã¢ããããŒããå®çŸããäžã§åœ¹ç«ã¡ãŸãããããã®ãã¹ããã©ã¯ãã£ã¹ãåãå ¥ããããšã§ãæ¥åã®æµãã¯ããè¿ éãã€ã¹ã ãŒãºã«ãªããŸãã
6. ã¯ã©ãŠããµãŒãã¹ãšé£æºããŠæ¥åãæé©å
ã¯ã©ãŠããµãŒãã¹ã®é²åã«ãããäŒæ¥ã¯ãã®ã€ã³ãã©ã掻çšããŠæ¥åã®å¹çåãå³ãããšãã§ããŸããPython ã¯ãã®åéã§ç¹ã«åŒ·åãªèšèªã§ãããè€æ°ã®ã¯ã©ãŠããã©ãããã©ãŒã ãPythonã®ãµããŒããæäŸããŠããŸãã
ã¯ã©ãŠãããŒã¹ã®ãœãªã¥ãŒã·ã§ã³ã¯ããªã¢ãŒããµãŒããŒäžã§ã®ããŒã¿åŠçãšã¹ãã¬ãŒãžãå¯èœã«ããäŒæ¥ã«ãšã£ãŠã®ãã¬ãã·ããªãã£ãšã¹ã±ãŒã©ããªãã£ãåäžãããŸããPythonãçšããŠãããã®ãµãŒãã¹ãšå®¹æã«çµ±åããæ¥ã ã®æ¥åãã·ãŒã ã¬ã¹ã«èªååããããšãã§ããŸãã
ãã®ã»ã¯ã·ã§ã³ã§ã¯ãäž»èŠãªã¯ã©ãŠããµãŒãã¹ãã©ãããã©ãŒã ãšPythonãçµã¿åãããŠæ¥åããã»ã¹ãå¹çåããæ§ã ãªææ³ã«ã€ããŠè©³è¿°ããŸãã
6.1 AWSãAzureãGCPã®ãµãŒãã¹ãšPython
AWS(Amazon Web Services)ãMicrosoft AzureããããŠGoogle Cloud Platform(GCP)ã¯æ¥åãå¹çåããããã®è±å¯ãªãµãŒãã¹ãæäŸããŠããããããã¯ãã¹ãŠPythonãšã®çžæ§ãè¯ãã§ããPythonã®ã©ã€ãã©ãªããã¬ãŒã ã¯ãŒã¯ãå©çšããŠãããã®ãµãŒãã¹ãæäœããããšã§ãããŒã¿åæããã·ã³ã©ãŒãã³ã°ãWebã¢ããªã±ãŒã·ã§ã³ã®ãããã€ãšãã£ãã¿ã¹ã¯ã容æã«è¡ãããšãã§ããŸãã
åã¯ã©ãŠããµãŒãã¹ã¯ãPython SDK(ãœãããŠã§ã¢éçºããã)ãæäŸããAPIãéããŠç°¡åã«æ¥åã®èªååãå®çŸå¯èœã§ããäŸãã°ãAWSã®Boto3ãAzureã®Azure SDK for PythonããããŠGCPã®Cloud Client Libraries for Pythonãããã«åœãããŸãã
ãããã®SDKãçšããããšã§ããµãŒããŒã®èšå®ããã¡ã€ã«ã®ã¢ããããŒããããŒã¿ããŒã¹ã®ç®¡çãšãã£ãäžé£ã®ããã»ã¹ãèªååããæ¥åã®æéãå€§å¹ ã«åæžããããšãã§ããŸãã
6.2 ã¯ã©ãŠãäžã§Pythonãå®è¡ããããã®ã»ããã¢ãã
Pythonããã°ã©ã ãã¯ã©ãŠãäžã§å®è¡ããã«ã¯ãããã€ãã®åæã»ããã¢ãããå¿ èŠã§ããããã«ã¯ãéžæããã¯ã©ãŠããµãŒãã¹ãã©ãããã©ãŒã ã§ã®ã¢ã«ãŠã³ãäœæãé©åãªæš©éèšå®ããããŠéçºç°å¢ã®ã»ããã¢ãããå«ãŸããŸãã
éåžžãã¯ã©ãŠããµãŒãã¹ãããã€ãã¯ä»®æ³ãã·ã³ãã³ã³ãããæäŸãããããã®äžã§Pythonç°å¢ãæ§ç¯ããããšãå¯èœã§ããäŸãã°ãAWS EC2ãGoogle Compute Engineã®ã€ã³ã¹ã¿ã³ã¹ãç«ã¡äžããããã«Pythonãšå¿ èŠãªã©ã€ãã©ãªãã€ã³ã¹ããŒã«ããŸãã
ãŸããã¯ã©ãŠãIDEãã³ãŒããšãã£ã¿ãå©çšããæ¹æ³ããããããã«ããã¯ã©ãŠãå ã§çŽæ¥ã³ãŒããç·šéããå®è¡ããããšãã§ããŸãããã®ã¢ãããŒãã¯ãéçºããã»ã¹ãã·ã³ãã«ã«ããããŒã éã®ã³ã©ãã¬ãŒã·ã§ã³ãå©ããŸãã
6.3 ãµãŒããŒã¬ã¹ã¢ãŒããã¯ãã£ã«ããã³ã¹ãåæž
ãµãŒããŒã¬ã¹ã¢ãŒããã¯ãã£ã¯ããµãŒãã¹ã®ã¹ã±ãŒãªã³ã°ãšéçšãã¯ã©ãŠããµãŒãã¹ãããã€ãã«å§èšããææ³ã§ããããã¯ã³ã¹ããåæžã¿ãéçºè ãã€ã³ãã©ã¹ãã©ã¯ãã£ã®ç®¡çã«è²»ããæéãæžãããã³ãŒãã®äœæã«éäžã§ããããã«ããŸãã
Pythonã¯ãAWS Lambdaã®ãããªãµãŒããŒã¬ã¹ã³ã³ãã¥ãŒãã£ã³ã°ãµãŒãã¹ãšçµ±åããã®ã«é©ããŠããŸããLambdaã§ã¯ã³ãŒããã¢ããããŒãããã ãã§ãAWSãå®è¡ç°å¢ãèªåã§æäŸãã䜿çšããåã ãã®èª²éã§æžã¿ãŸãã
ãµãŒããŒã¬ã¹ã¢ãŒããã¯ãã£ã¯ãã€ãã³ãé§ååã®ã¿ã¹ã¯ããçæéã§å€§éã®ãªã¯ãšã¹ããåŠçãããããªã¢ããªã±ãŒã·ã§ã³ã«ç¹ã«æå¹ã§ãããµãŒãã¹ã®èªåã¹ã±ãŒãªã³ã°ãå¯èœãªãããéèŠã«å¿ãããªãœãŒã¹é åãè¡ããã³ã¹ããæå°éã«æããããšãã§ããŸãã
6.4 ã¯ã©ãŠãAPIãå©çšãããµãŒãã¹ã®èªåå
ã¯ã©ãŠãAPIã䜿ã£ãèªååã¯ãPythonãç¹ã«åšåãçºæ®ããé åã§ããã¯ã©ãŠããµãŒãã¹ãã©ãããã©ãŒã ãæäŸããAPIãéããŠãªãœãŒã¹ã®ããããžã§ãã³ã°ãããŒã¿åŠçãããã«ã¯äººå·¥ç¥èœãµãŒãã¹ã®å®è¡ãå¯èœã§ãã
Pythonã¹ã¯ãªããã¯APIãªã¯ãšã¹ããéä¿¡ããããã«å©çšã§ããããã«ããããã°ã©ã çã«Servicesãå¶åŸ¡ããããšãã§ããŸããèªåããã¯ã¢ããããªã¢ã«ã¿ã€ã ããŒã¿åæãäºæž¬ã¡ã³ããã³ã¹ãªã©ãããžãã¹ããã»ã¹ãèªååããçç£æ§ã®åäžã«å¯äžããŸãã
è±å¯ãªã©ã€ãã©ãªãšç°¡æœãªæ§æããããããPythonéçºè ã¯è¿ éã«é«å質ãªèªååã¹ã¯ãªãããäœæããããšãå¯èœã§ãããã®çµæãäŒæ¥ã¯æ¥ã ã®éçšã«ãããŠæè»æ§ãæãããããæŠç¥çãªæ¥åã«è³æºãéäžããããšãã§ããããã«ãªããŸãã
7. ãŸãšã
ããžãã¹ããŒãœã³ãžåãããã®ã¬ã€ãã§ã¯ãPythonãé§äœ¿ããŠæ¥åã®å¹çåãå³ãæ¹æ³ã玹ä»ããŠããŸããPythonã®æ¥åå©çšäŸããããã«ããå¹çåã®ã¡ãªãããææ¡ããå°å ¥åã®æºåç¹ã泚æäºé ãåŠã³ãŸããããç¹°ãè¿ãäœæ¥ã®èªååããããŒã¿åæããŠã§ãã¹ã¯ã¬ã€ãã³ã°ãã¢ããªã±ãŒã·ã§ã³éçºãã¯ã©ãŠããµãŒãã¹é£æºã«è³ããŸã§ãå¹ççãªããã»ã¹ã確ç«ããããã®å ·äœçãªæè¡ãã©ã€ãã©ãªãæ¢æ±ããããŸããPythonã¯ãã®å€æ§ãªã©ã€ãã©ãªãšãã¬ãŒã ã¯ãŒã¯ã«ãããæ§ã ãªæ¥åã§åšåãçºæ®ããã²ãã®ç¥èã掻ãããŠãæ¥åããã»ã¹ã®é©æ°ãç®æããŠãã ããã