Python3 [Linux的Wine中使用IDLE]
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")
相关推荐
以梦为马不负韶华 2020-10-20
YENCSDN 2020-11-17
lsjweiyi 2020-11-17
houmenghu 2020-11-17
Erick 2020-11-17
HeyShHeyou 2020-11-17
lhtzbj 2020-11-17
夜斗不是神 2020-11-17
pythonjw 2020-11-17
dingwun 2020-11-16
lhxxhl 2020-11-16
坚持是一种品质 2020-11-16
染血白衣 2020-11-16
huavhuahua 2020-11-20
meylovezn 2020-11-20
逍遥友 2020-11-20
weiiron 2020-11-16