search

Home  >  Q&A  >  body text

ide - Will there be any prompts when using from...impot... as when writing python in pycharm? Does this violate any regulations of PE8?

python is 2.7

For example, like this: from defs import raiseApiEx as err
This line is directly gray. When err is used below, it is directly marked with a wavy line prompt.

There was no such thing in eclipse before. I heard that the syntax detection in pychram is relatively strict.
But isn't from defs import raiseApiEx as err supported by syntax?
What regulations are violated? Although it does not affect the operation, I would like to know why it is prompted.

天蓬老师天蓬老师2755 days ago876

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-18 10:58:33

    It is not recommended to use camel case in python

    reply
    0
  • Cancelreply