sys.setdefaultencoding(“utf-8”) 这种方式在3.x中被彻底遗弃,可以看看stackover的这篇文章:
http://stackoverflow.com/questions/3828723/why-should-we-not-use-sys-setdefaultencodingutf-8-in-a-py-script