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

如果不行,文件名另存为

没有评论:

发表评论