我使用以下代码来显示弹出消息 if platform.system() == 'Windows':
def message_box(title, textError', 'Phat sinh loi Unicode, kiem tra chi tiet trong %s' % common.ERR_LOG_FILE, 0) 当我的应用在Windows7中运行时,弹出窗口包含所有意想不到的中文字符,而我的原始消息(在代码片段中)只
我正在python 2.7.9中实现消息框。我正在编写应该在Windows和Linux中运行的代码。下面的代码在windows中工作得很好,但在Linux中就不行了。我知道在Linux中没有的模块对象。在编写运行在windows和Linux环境中的代码时,是否需要注意一些指导原则?这将是很好的任何文档链接。提前谢谢。import ctypes # An included library with Python in