如何将lowerCamelCase与所有大写字母缩写组合在一起?(有风格)



假设OSCClient是一个类,我希望类的实例以小写字母开头:

oSCClient = OSCClient() # ew!

edit:我问这个问题是因为pep8说:"在CapWords中使用缩写时,请将缩写的所有字母大写。因此HTTPServerError比HTTPServerError更好。"

我会使用

oscClient = OSCClient() # yey

最新更新