mac上的ls不支持 --ignore 选项 解决方法: brew install coreutils 然后在 .bash_profie 添加 alias ls="gls --color --ignore='*.pyc'"