{"description":"python - Getting Module from Type - Stack Overflow \u307f\u305f\u3044\u306a\u611f\u3058\u3057\u304b\u306a\u3044\u304b\u306a\u3041 >>> import numpy as np >>> import inspect >>> t = np.float32 >>> mod = inspect.getmodule(t) >>> a = mod.array([1, 2, 3]) >>> type(a) <class 'numpy.ndarray'> \u305d\u3046\u304b\u30fb\u30fb\u30fb\u3002https://github.com/python/cpython/blob/v3.9.4/Lib/inspect.py#L727-L771 \u2026","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Frandommemory.hatenablog.com%2Fentry%2F2021%2F04%2F30%2F021456\" title=\"\u578b\u304b\u3089\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3044 - \u3089\u3093\u3060\u3080\u306a\u8a18\u61b6\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/derwind/","blog_title":"\u3089\u3093\u3060\u3080\u306a\u8a18\u61b6","categories":["Python"],"author_name":"derwind","url":"https://randommemory.hatenablog.com/entry/2021/04/30/021456","height":"190","blog_url":"https://randommemory.hatenablog.com/","published":"2021-04-30 02:14:56","version":"1.0","provider_name":"Hatena Blog","image_url":null,"provider_url":"https://hatena.blog","width":"100%","type":"rich","title":"\u578b\u304b\u3089\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u53d6\u5f97\u3057\u305f\u3044"}