6 07年3月

改写地一个python利用Queue多线程干活的脚本

关键字:,

python用Queue多线程干活的脚本

阅读全部»

贝贝爸 发表在 原创技术文章 | 等您写评论

6 07年3月

pydev在eclipse里面的输出中文乱码的解决方案


#!/usr/bin/python
# -*- coding: utf-8 -*-
print "中文"

输出
涓枃

看了一下帮助,eclipse console default的encoding是GBK,需要设置console的encoding为utf-8方法
Console encoding
The console can be configured to display output using a character encoding different from the default encoding. To set the console encoding for an application, use the Console Encoding settings on the Common tab of a launch configuration.

贝贝爸 发表在 原创技术文章 | 等您写评论