Not necessarily. For example, pep does not recommend using *args **kwargs in methods. However, for the sake of code flexibility, I will consider not complying with pep8
Use autopep8 to automatically format the code. Except for the 80 characters per line, I will abide by everything else, otherwise the code will look very awkward
Yes. If you use 80, you can open two windows in vim, and it is easier to write doc. I will abide by it, but don’t do it deliberately. For example, I am used to using single quotes to write docstring comments ' instead of double quotes ".
I know how to do it...The code I write will look good...and I want to upload it to github..Although no one will read it, I will always be afraid that someone will make noise...
Personally, I think following certain rules will make people who look at your code more comfortable.
If you use vim, it is recommended that you use this plug-in.
Not necessarily. For example, pep does not recommend using *args **kwargs in methods. However, for the sake of code flexibility, I will consider not complying with pep8
pycharm will prompt you with obsessive-compulsive disorder
Use autopep8 to automatically format the code. Except for the 80 characters per line, I will abide by everything else, otherwise the code will look very awkward
Yes. If you use 80, you can open two windows in vim, and it is easier to write doc. I will abide by it, but don’t do it deliberately. For example, I am used to using single quotes to write docstring comments ' instead of double quotes ".
I didn’t think it had to be like this. Once the IDE is set up, I don’t have to worry about it
I know how to do it...The code I write will look good...and I want to upload it to github..Although no one will read it, I will always be afraid that someone will make noise...
Must comply
Complies with PEP8, which is more conducive to building a standard and readable code
In fact, I think PEP8 itself is still a very loose standard
The length is set to 120, pep8 check is enabled by default