空格/标签转换实用程序? [英] space/tab conversion utility?

查看:68
本文介绍了空格/标签转换实用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何实用工具可以将Python源代码从基于空格的
块缩进转换为基于制表符?


您可以使用展开按钮从tabs->空格转换,但是unexpand

并不够明亮,反之亦然。


-

格兰特爱德华兹格兰特哇!来自SCHER的MEER biz doo

...

visi.com

Is there any utility to convert Python sources from space-based
block indentation to tab-based?

You can use "expand" convert from tabs->spaces, but "unexpand"
isn''t bright enough to do the reverse.

--
Grant Edwards grante Yow! By MEER biz doo
at SCHOIN...
visi.com

推荐答案

In文章< 41 *********************** @ newsreader.visi.com>,

Grant Edwards< gr ** **@visi.com>写道:
In article <41***********************@newsreader.visi.com>,
Grant Edwards <gr****@visi.com> wrote:
是否有任何实用工具将Python源代码从基于空格的块缩进转换为基于制表符?
Is there any utility to convert Python sources from space-based
block indentation to tab-based?




你为什么要这样?


-

David Eppstein

计算机科学系,大学。加利福尼亚州,Irvine
http://www.ics.uci。 edu / ~eppstein /


Grant Edwards于28/07/2004 17:49对世界说:
Grant Edwards said unto the world upon 28/07/2004 17:49:
是否有任何实用程序可以将Python源代码从基于空格的块缩进转换为基于制表符?

您可以使用展开按钮。从tabs->空格转换,但是unexpand
并不够明亮,反之亦然。
Is there any utility to convert Python sources from space-based
block indentation to tab-based?

You can use "expand" convert from tabs->spaces, but "unexpand"
isn''t bright enough to do the reverse.







< http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65226>


还有其他一些标签/网站上的空间食谱。


最好,

Brian vdB



Hi,

<http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65226>

There are a couple of other tab/space recipes on the site, too.

Best,

Brian vdB


2004-07-28,David Eppstein< ep ****** @ ics.uci.edu>写道:
On 2004-07-28, David Eppstein <ep******@ics.uci.edu> wrote:
在文章< 41 *********************** @ newsreader.visi.com>,
Grant Edwards< gr **** @ visi.com>写道:
In article <41***********************@newsreader.visi.com>,
Grant Edwards <gr****@visi.com> wrote:
有没有任何实用工具可以将Python源代码从基于空格的块缩进转换为基于制表符?
Is there any utility to convert Python sources from space-based
block indentation to tab-based?



为什么你想要吗?



Why would you want to?




这样我就可以向Python应用程序提交修补程序了。

devloper使用标签。我的Python编辑器使用空格。


-

Grant Edwards grante哇!所以这就是它想要成为土豆的b $ b $

visi.com沙拉



So that I can submit patches to a Python application whos
devloper uses tabs. My Python editor uses spaces.

--
Grant Edwards grante Yow! So this is what it
at feels like to be potato
visi.com salad


这篇关于空格/标签转换实用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆