ã¾ããã ä»å¹´ã® PyCon JP 2020 ã«ã¦ãPython 3.9 æ代ã®åå®å ¨ãª Python ã®æ¥µãæ¹ãã¨ããã¿ã¤ãã«ã§ç»å£ããã¦ããã ãã¾ããæ¬ç¨¿ã¯ãçºè¡¨ã®è£è¶³ã¨ãªããåãã³ãã使ã£ã¦ Immutable 㪠Python ãå®ç¾ããæ¹æ³ãã«ã¤ãã¦ç´¹ä»ãããã®ã§ãã Python ã®åãã³ã Python ã«ã¯ãåãã³ããã¨ããæ©è½ããããåãããã°ã©ã å ã«å®£è¨ãããã¨ãã§ãã¾ãã age: int = 28 name: str = 'Bruce Wayne' Python ã¯åçåä»ãè¨èªã§ããããããã®æ å ±ã¯ã©ã³ã¿ã¤ã (å®è¡æ)ã«ã¯ãã¾ãæå³ããªãã®ã§ããã mypy ãªã©ã®åãã§ãã¯ãã¼ã«ãã¤ããã¨ãåã®èª¤ãããã§ãã¯ãããã¨ãã§ãã¾ãã def check_batman(name: str) -> bool: return name == 'Bruce Wayne' a
{{#tags}}- {{label}}
{{/tags}}