How Do I Keep Python Code Under 80 Chars Without Making It Ugly?

后端 未结 7 498
醉梦人生
醉梦人生 2021-01-31 14:27

This is a question that keeps recurring in all of my programming, python and otherwise. I really like to keep my code under 80 chars if at all possible/not horribly ugly. In a l

7条回答
  •  执念已碎
    2021-01-31 14:59

    Try shortening your names if you have that option. Otherwise you can use the \ character to continue your lines onto the next line (along with other similar constructs such as what you mentioned up above).

提交回复
热议问题