求助:ConfigParser模块的问题

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

求助:ConfigParser模块的问题

玄利磊

set( section, option, value) 方法不是将value写入INI文件中吗

为什么我用了后INI文件中对应的option值没变啊

_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese
Reply | Threaded
Open this post in threaded view
|

Re: 求助:ConfigParser模块的问题

limodou
On 1/29/07, 玄利磊 <[hidden email]> wrote:
>
> set( section, option, value) 方法不是将value写入INI文件中吗
>
> 为什么我用了后INI文件中对应的option值没变啊
>
要保存才行啊。光set是修改了内存中的内容。


--
I like python!
UliPad <<The Python Editor>>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou
_______________________________________________
python-chinese
Post: send [hidden email]
Subscribe: send subscribe to [hidden email]
Unsubscribe: send unsubscribe to  [hidden email]
Detail Info: http://python.cn/mailman/listinfo/python-chinese