ãµã¼ãã¤ã³ãã¼ã import foo éããã¹ã§ã¤ã³ãã¼ã import sys,os sys.path.insert(0, '..') import adir.fooããã§ãåãã¢ã¸ã¥ã¼ã«ãï¼åã¤ã³ãã¼ããããªã!ãã¨å±ããã¦ã»ããã ã¢ã¸ã¥ã¼ã«ã¹ã³ã¼ãã®å¤æ°ã¯éã£ãã¤ã³ã¹ã¿ã³ã¹ãããã«ã±ããåã¾ããã print foo.module_scope_var print adir.foo.module_scope_var 確ãã«éã print adir.foo.module_scope_var==foo.module_scope_var False ããã¯ã¢ã¸ã¥ã¼ã«èªä½ãéãããã print adir.foo==foo False ã¢ã¸ã¥ã¼ã«ãããªã³ããã¦ã¿ã㨠print adir.foo print foo ãã¯ãéãã ãã¡ã¤ã«ã¯ï¼ print foo.__file__ pri
{{#tags}}- {{label}}
{{/tags}}