开头加入以下代码解决
import codecs, sys 
sys.stdout = codecs.getwriter('utf8')(sys.stdout.buffer)