代码规范 - Python代码,你会严格遵守PEP8吗?
PHPz
PHPz 2017-04-17 13:05:05
0
27
1818

Python代码,你会严格遵守PEP8吗?比如代码一行不超过79个字符,如果正好是80个字符,你会为了遵守PEP8而对代码进行调整吗?

PHPz
PHPz

学习是最好的投资!

reply all(27)
伊谢尔伦

Be deliberate, otherwise you will feel uncomfortable

Not a Virgo

阿神

Willing to do so. But I don’t want to use human flesh to take the initiative to check and pay attention. So exhausted.

If there is an IDE like NINJA that can report errors in real time, I will definitely do it.

My attitude towards JS strict mode is the same: the official is willing to fill this hole, why not comply? Just don't waste your energy unnecessarily.

巴扎黑

For Django, 79 characters is too harsh, but other specifications are still good

Peter_Zhu

For entrepreneurial projects, CI requires pep8, and programmers use PyCharm, which is easy and stress-free to use with #nopep8.

迷茫

Nothing intentional, the editor has similar functions.

左手右手慢动作

No. How many characters the longest line has depends on how wide my monitor is. Now I will break the line when it reaches less than 76 characters, because the line number is added after the vertical separation. If it is too long, it will easily cause soft lines or incomplete display.

小葫芦

No, 79 characters is too few

洪涛

I won’t strictly comply, but the sublime and pycharm I use help me comply with a very large part of the standards.

左手右手慢动作

Yes, otherwise the tilde in pycharm will be too unpleasant, and it will cause mysophobia~

左手右手慢动作

Except for 79, everything else is complied with. There is an editor to check. It was mandatory at first, but now I’m used to it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template