What Sam Says
2013年6月11日星期二
emacs 处理python indention
问题:TabError: inconsistent use of tabs and spaces in indentation
不要用tab,自动缩进
解决
命令行方式
sed
-
e
's;\t; ;'
<
yourFile
.
py
>
yourNedFile
.
py
emacs
M-x untabify
如果不行,文件名另存为
没有评论:
发表评论
较早的博文
主页
订阅:
博文评论 (Atom)
没有评论:
发表评论