我一直在试图找到一个模块的位置,但我不能搜查蟒蛇文件夹,但仍无法找到它,但我知道它的存在Python模块的位置
>>> import math
>>> math.__path__
Traceback (most recent call last):
File "<pyshell#13>", line 1, in <module>
math.__path__
AttributeError: 'module' object has no attribute '__path__'
>>> math.__file__
Traceback (most recent call last):
File "<pyshell#14>", line 1, in <module>
math.__file__
AttributeError: 'module' object has no attribute '__file__'
欢迎来到StackOverflow!我通过突出显示代码并敲击代码['{}']按钮来修改格式。 – Johnsyweb
谢谢你,你是怎么做到的?点击代码按钮只告诉我四倍空间来启动代码块:/也许我只是错过了一些东西,下一个问题我发布我会看看它。 – Arcticfoxx
我认为数学是一个内建模块。 – bw1024