擅长:python、mysql、java
<ol>
<li><p>在控制台中,您的终端设置定义编码。现在,unices上主要是unice,例如Linux/BSD/MacOS和Windows上的Windows-1252。在解释器中,它默认为python文件的编码,通常是ascii(除非代码以UTF字节顺序标记开头)。</p></li>
<li><p>我不太确定,但也许在字符串“%s”%s |%s |%s\n“前面加一个<code>u</code>使其成为unicode字符串可能会有所帮助。</p></li>
</ol>