2017-05-01ãã1ã¶æéã®è¨äºä¸è¦§
æ¦è¦ æªã ã«ã¡ããã¡ããå¿ãã¦ã¦ãåãééããããã®ã§å¿ããªãããã«ã¡ã¢ã Pythonã§ãã£ã¬ã¯ããªãåé¤ãããã¨ãã¦ã¦ããã¤ãã®èª¿å㧠os.remove('/tmp/a') ã¨ãããã¨OSErrorãçºçãã¾ããWindowsã ã¨ä»¥ä¸ã®ãããªæãã PermissionError: [WinError â¦
æ¦è¦ Kotlinã¦ã¼ã¶ã°ã«ã¼ãã®æ¹ã ãå ±èã§ãKotlinå ¥éã¾ã§ã®å©èµ°èªæ¬ãã¨ããããã¥ã¡ã³ãã以ä¸ã®URLã§å ¬éãã¦ãã ãã£ã¦ã¾ããæè¬ m( )m kotlin-prior-learning-book.pdf - Google ãã©ã¤ã 表ç´ãå°ãâ¯ã©ã¤ãªã¼ã¡ã£ããªæãã§ã90ãã¼ã¸ããã¾ããåãâ¦
æ¦è¦ ç¥ããªãã£ãã®ã§ã¡ã¢ã¡ã¢ãOnline Python Tutorã¨ãããµã¤ã Python Tutor - Visualize Python, Java, JavaScript, TypeScript, Ruby, C, and C++ code execution ããããããè¨è¿°ããã³ã¼ããï¼ã¹ãããæ¯ã« ã©ã®ãããªå é¨ç¶æ ã«ãªã£ã¦ããã®ããå¯â¦
æ¦è¦ ãã¤ãå¿ããã®ã§ã¡ã¢ã¡ã¢ã å¤åãã©ã®IDEã§ãåãè¨å®ã ã¨æãã¾ããï¼IDEAã¨PyCharmã¨Riderã§ã¯ç¢ºèªï¼ Visual Studioã¨ãã«æ £ãã¦ããã¨ãã©ããã¦ã大æåå°æååºå¥ãªãã«è£å®ãåºã¦ãã¦æ¬²ããã®ã§ã ããæ¹ è¨å®ç»é¢ã®ãEditorãâãGeneralãâãCâ¦
æ¦è¦ blog.jetbrains.com 以åãããè¤æ°ããã¸ã§ã¯ãã®å®è¡ã¯åºæ¥ã¦ãããã§ãããVisualStudioã¿ããã«ãè¤æ°ã®ããã¸ã§ã¯ãã«ã¾ããã£ã¦ãããã°ãåºæ¥ãªãã£ãã®ãã¡ãã£ã¨æ®å¿µã ã£ãã®ã§ãããã¤ãã«åºæ¥ãããã«ãªãã¾ããï¼ã¾ã£ã¦ããã¼ã Xamarin iOâ¦
ã¾ã ãããã¾ãè¦ãã¦ãªãã§ãããã¨ããããã¡ã¢ã¡ã¢ã æ¦è¦ pythonnetã¯ãpython 㨠.NET ãç¹ãã©ã¤ãã©ãªã Python for .NET ä¼¼ããããªã©ã¤ãã©ãªã¨ã㦠IronPython ãããã¾ãããIronPython 㯠.NET Framework ã Monoã§å®è£ ãããPythonå¦çç³»ããªã®â¦
ä»åãããã¾ã python é¢ä¿ãªã話é¡ã§ãããé¢ç½ãã£ãã®ã§ã¡ã¢ã¡ã¢ã ã©ã®è¨èªã«ãè¨ãã話ã§ãã æ¦è¦ stackoverflow ã® Python ã«ãã´ãªè¦ã¦ããã以ä¸ã®å 容ãçºè¦ã stackoverflow.com ãããã¯ã®æ稿è ããã¯ãå¦çãPythonã§æ¸ãã¦ããã©ãã£ã¡ãæâ¦
namedtupleã«ã¤ãã¦ã®ã¡ã¢ã§ãã æ¦è¦ ããã¼ããããã«python触ã£ã¦ããæ(å¤å 2.0 ã¨ããã®ã¸ãï¼ã«ã¯ãç¡ãã£ãã®ã§ãã æè¿ã¾ãpython触ãããã«ãªã£ã¦ãã¾ãæ°ã«å ¥ã£ãã®ããã® namedtuple ããã 軽ããããã£ã¼ã«ãã¢ã¯ã»ã¹ã§ãããããªãã¨ãã£ã¦â¦
以ä¸ã®ãã¼ã¸ã«ã96 Best programming fonts as of 2017ãã£ã¦å½¢ã§ ãªã¹ãã¢ããããã¦ãã¾ããä¸ä½ã®ãã©ã³ãã¯ã©ããæåã©ããã§ããã¼ã www.slant.co å人çã«ã¯ãæãããPragmata Proããã©ã³ãã好ããªã®ã§ãã ãã«ã»ããã®å¤æ®µãé«ãã»ã»ã»ã»( ï¼ââ¦
æ¦è¦ å°ãã¿ãPython 3.0ã§è¿½å ãããä»æ§ã§ãã ç¥ã£ã¦ãã¨ã¡ãã£ã¨æ¥½ã§ãã¾ãã 以ä¸ã®PEPã§ãã www.python.org ååã¯ãExtended Iterable Unpacking ã£ã¦æãã®ã¡ãã£ã¨ãããããã㪠ååã§ãããå®éã«ã³ã¼ãè¦ã¦ã¿ãã¨ããæå³ãåããã¾ãã list0â¦
以ä¸ãèªåç¨ã®ã¡ã¢ã§ãã æ¦è¦ pythonã¨ããã°ãããªã¹ãå å 表è¨(list comprehension)ããæåã§ãã ãªã¹ãã ããããªãã¦ãè¾æ¸ã«ãéåã«ãå å 表è¨ãããã¾ãã ãªã¹ãå å è¡¨è¨ [ expression for item in iterable] è¾æ¸å å è¡¨è¨ { key_item: value_itâ¦
Pythonããã ãã¨ããããã便å©ãªã®ã§ï½µï¾ï½¼ï¾ï½°ã£ã¦ãªã£ã¦ããã£ã¨ç¥ãããã£ã¦ãªã£ãããã«åºã¦ããåéããã¾ãã iterable, iterator, generator, yield ä»ã®è¨èªãã£ã¦ã人ã ã¨å¤§ä½ããã¼ãã£ã¦åãããã®ãªã®ã§ãã ã¨ã¯è¨ããæå¾ã® yield ãªã©ã¯åè¦ããªâ¦
以ä¸ãèªåç¨ã®ã¡ã¢ã§ãã Pythonã¨ããã°ããªã¹ãå å 表è¨ã楽ãªã®ã§ãã»ãã»ã使ãããã¨ãããªã®ã§ãã ã¹ã¯ãªããæ¸ãã¨ãã£ã¦å¾ã ã«ãã¦ããªãããã¼ã¿ãè©°ã¾ã£ã¦ãããã¡ã¤ã«ããã£ã¦ ãã®ä¸èº«ãã´ãã§ã´ãã§ãã¦ãæ´å½¢ãããæ½åºããããããã¨ãç§ã®â¦
以ä¸ãå¿ããªããã¡ã«ã¡ã¢ã¡ã¢ã ç¹å®ã®ãã¼ã¿ããã£ã¦ãæ¹è¡ã³ã¼ãã§splitãããå ´å DATA.split(os.linesep) ã£ã¦ããã°ãmacã¨linuxã§ã¯ãã¾ããããã§ãã windowsã§ããã¨ãåå²ãããã«ä¸ã¤ã®æååã¨ã㦠çµæãè¿ã£ã¦ããã ã©ãããWindowsã®å ´å oâ¦