Python3 [Linux的Wine中使用IDLE]

netbean7 安装Python插件

http://deadlock.netbeans.org/hudson/job/nbms-and-javadoc/lastStableBuild/artifact/nbbuild/nbms/updates.xml.gz

1)安装wine

2)下载windows下使用的msi安装文件.

wine msiexec /i python-3.2.msi

3)wine运行bat

命令:wineconsole cmd

出错:
err:wineconsole:WCUSER_SetFont wrong font
err:wineconsole:WCUSER_SetFont wrong font
err:wineconsole:WINECON_Fatal Couldn't find a decent font, aborting
解决:

$ export LANG=en_EN.UTF-8
$ wineconsole cmd

运行linux菜单中wine应用快捷方式(或运行idlelib中idel.bat)

过一会打开窗口好像是python shell没有IDEL,选择new window,就出来了.

使用python写日志:

import os,logging

fname=os.getcwd()+"/test.log"
logging.basicConfig(level=logging.DEBUG,filename=fname,filemode="w")

logging.info("测试loging")
logging.debug("测试debug")

相关推荐