简体   繁体   English

StyleFrame(或 styleframe?)导入问题

[英]StyleFrame (or styleframe?) import issue

This is not a deal breaker but I used to import this library via "import StyleFrame", but now it throws the error:这不是一个交易破坏者,但我曾经通过“import StyleFrame”导入这个库,但现在它抛出了错误:

ModuleNotFoundError: No module named 'StyleFrame' ModuleNotFoundError:没有名为“StyleFrame”的模块

Switching from "import StyleFrame" to "import styleframe" fixes the problem, but just wanted to know if this was done intentionally by the creator?从“import StyleFrame”切换到“import styleframe”解决了这个问题,但只是想知道这是否是创作者故意做的?

Yes, it was done intentionally and is mentioned in the changelog as one of the changes between versions 2.X and 3.X:是的,它是有意完成的,并且在更新日志中被提及为版本 2.X 和 3.X 之间的更改之一:

3.0.1 3.0.1

... ...

  • Renamed package name to styleframe (all lowercase) in accordance of PEP8根据 PEP8 将 package 名称重命名为styleframe (全部小写)

... ...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM