ãã¦ã質åã§ãã a = 1.0 a is 1.0 ä¸è¨ã®å¦çã§ãa is 1.0 ã®çµæ㯠True ã¨ãªãã§ãããããããã¨ã False ã¨ãªãã§ããããï¼ True ã¨çããããªããä¸æ£è§£ã§ããåçãã¦ãã ããã False ã¨çããããªããåããä¸æ£è§£ã§ããççãã¦ãã ããã æ£è§£ã¯ ãããããªãã ã§ãã Pythonã¤ã³ã¿ã¼ããªã¿ãèµ·åãã¦ã対話çã«å®è¡ãã¦ã¿ã¾ãããã >>> a = 1.0 >>> a is 1.0 False False ã§ãããa ã«ä»£å ¥ãã float ãªãã¸ã§ã¯ãã¨ãa is 1.0 ã§æ¯è¼ãã¦ãã float ãªãã¸ã§ã¯ãã¯ãåãå¤ã§ããç°ãªããªãã¸ã§ã¯ãã§ãã ã§ããã¡ãã£ã¨æ¸ãæãã¦ãåãå¦çãé¢æ°ã®ä¸ã§å®è¡ããã¨ã©ãã§ãããï¼ >>> def test(): ... a = 1.0 ... return a is 1.0 ... >>> t
{{#tags}}- {{label}}
{{/tags}}