taiyangshenniao 2011-06-12
netbean7 安装Python插件
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")