84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
Perl中有个很好用的工具叫PerlTidy可以实现如下功能
$a=1; $b = "hello"; $foo = "bar"; $helloworld = "abc";
变为
$a = 1; $b = "hello"; $foo = "bar"; $helloworld = "abc";
请问Python有可以实现类似排版的tidy工具么?
欢迎选择我的课程,让我们一起见证您的进步~~
众所周知,Perl和Python的文化在很多方面是不同的。PEP20中提到了其中一点,There should be one-- and preferably only one --obvious way to do it.
你提到的这种对齐方式与PEP8的要求不符,所以不太可能被主流的工具支持。当然,你要是打算自己写个Python Tidy,也没人拦着你。
众所周知,Perl和Python的文化在很多方面是不同的。PEP20中提到了其中一点,There should be one-- and preferably only one --obvious way to do it.
你提到的这种对齐方式与PEP8的要求不符,所以不太可能被主流的工具支持。当然,你要是打算自己写个Python Tidy,也没人拦着你。