作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在测试编译 Python 代码,但是当我在一个包含测试文件的目录上运行 compileall
模块时,出于某种原因它会跳过该目录并转而编译标准库。为什么要这样做?
最佳答案
您在未指定目录的情况下运行 python -m compileall
,模块正在执行 exactly what the documentation says it should : 编译 sys.path
中的每个目录。
要仅编译您当前所在的目录,请将其传递到命令行:
$ python -m compileall .
关于python - 为什么 compileall 模块不工作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16640668/
我正在测试编译 Python 代码,但是当我在一个包含测试文件的目录上运行 compileall 模块时,出于某种原因它会跳过该目录并转而编译标准库。为什么要这样做? 最佳答案 您在未指定目录的情况下
我是一名优秀的程序员,十分优秀!