本月博客排行
-
第1名
steven789654 -
第2名
e_e -
第3名
yeluowuhen
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - kaizi1992
- wy_19921005
- vipbooks
- arpenker
- zysnba
- e_e
- wallimn
- ganxueyun
- Xeden
- zhanjia
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- jh108020
- xpenxpen
- fantaxy025025
- 喧嚣求静
- kristy_yy
- javashop
- sunj
- yeluowuhen
- ajinn
- lerf
- lemonhandsome
- chenqisdfx
- flashsing123
- xiaoxinye
- lyndon.lin
- bosschen
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- duanfei
- sgqt
- xiangjie88
- hudiemeng870329
- mft8899
- java_doom
- gaochunhu
- steven789654
- zw7534313
- silverend
- sichunli_030
- 深蓝传说
最新文章列表
Python2.x中支持unicode的configparser
Python2.x中支持unicode的configparser
by cnDenis http://cndenis.iteye.com 2013年1月16日
Python2.x中许多内置模块不支持unicode,确实是很烦的事。configparser就是其中之一。
解决方法是使用Python3.x中configparser的backport,http://pypi.python.org/ ...
Python读写配置文件
话不多说,贴代码:
config=ConfigParser.ConfigParser()
strExeDir = get_main_dir()strFileName = os.path.join(strExeDir, Utf8_To_Gb18030("MQComunicator.config")) with open(strFileName) as cfgfil ...