Python论坛  - 讨论区

标题:[python-chinese] 设置配置文件中的option时 大写变小写了

2006年11月01日 星期三 13:18

王明 mingwang在iflytek.com
星期三 十一月 1 13:18:05 HKT 2006

那么我要保持option的大写到配置文件中该怎么操作?
谢谢!

-----邮件原件-----
发件人: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] 代表 Qiangning Hong
发送时间: 2006年11月1日 12:18
收件人: python-chinese在lists.python.cn
主题: Re: [python-chinese]设置配置文件中的option时 大写变小写了

On 11/1/06, 王明 <mingwang在iflytek.com> wrote:
> 我的代码如下,我的option为大写字母,写进去变成小写,怎么回事?
[...]
>          config = ConfigParser.ConfigParser()
[...]

ConfigParser就是把所有option转成小写处理的。看optionxform方法。
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月01日 星期三 13:24

limodou limodou在gmail.com
星期三 十一月 1 13:24:02 HKT 2006

On 11/1/06, 王明 <mingwang在iflytek.com> wrote:
> 那么我要保持option的大写到配置文件中该怎么操作?
> 谢谢!
>
如果你对格式没有什么特别的要求,可以使用dict4ini

http://wiki.woodpecker.org.cn/moin/Dict4Ini

在我的blog上有一些中文的说明信息。它主要特点是你可以象字典一样来操作一个ini文件,它支持list格式,支持unicode,可以保证序顺,支持注释。支持多级字典。它主要用在了UliPad,
confbot(gtalk bot)中了。

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月01日 星期三 13:24

Ivan Diao adieu在adieu.cn
星期三 十一月 1 13:24:23 HKT 2006

²»ÖªµÀ»á²»»á³öÖÐÎÄ°æ±¾µÄ
°®ºÃÕß¿ÉÒÔ²ÎÓë·­ÒëÂð£¿


Date: Wed, 1 Nov 2006 12:46:45 +0800From: jejwester在gmail.comTo: python-chinese在lists.python.cn; python-cn在googlegroups.comSubject: [python-chinese] Django book pre-release
Django book pre-release
Jacob and I are excited to announce the pre-release of The Django Book!
Starting today, The Django book is available at djangobook.com. We'll be unveiling one or two chapters each week until the whole book is available. The first two chapters are available now. 
This is a pre-release, which means we're actively looking for comments, typo fixes, corrections and other suggestions from readers like you, all around the world. We'll try to incorporate your suggestions into the final product, which will be published by Apress early next year. Amazon.com is accepting preorders for the print edition, and the number of preorders so far has been astounding.
Unlike other pre-release books, we're making this process completely free and open, rather than charging you money for the privilege of submitting book improvements. (That always seemed a bit odd to us.) The book is available under the GNU Free Documentation License, which means it's free to read and redistribute. We're in this to improve the (already excellent) Django documentation, not to make a quick buck. 
How can you submit comments and typo fixes? By posting inline comments, of course! Jacob has knocked out a fantastic, Django-powered inline comment system that allows you to post comments to any particular paragraph in the book. Read all about it. (For those of you interested in the code, stay tuned. We'll be cleaning it up and releasing it. Many thanks to Jack Slocum for laying the groundwork.)
So, dive in, let us know what you think, and check back regularly for the latest chapter updates. There's an Atom feed that'll get updated each time we release new material. 
_________________________________________________________________
Check the weather nationwide with MSN Search: Try it now!
http://search.msn.com/results.aspx?q=weather&FORM;=WLMTAG
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061101/e59efa00/attachment-0001.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月01日 星期三 13:37

khtvfrc khtvfrc在126.com
星期三 十一月 1 13:37:53 HKT 2006

<<²»ÖªµÀ»á²»»á³öÖÐÎÄ°æ±¾µÄ
<<°®ºÃÕß¿ÉÒÔ²ÎÓë·­ÒëÂð£¿
    ÆÚ´ý!!

                        ´ËÉÏ!
Best regards,
IT Dept.
Ever Bright (HK) Limited
  ----- Original Message ----- 
  From: Ivan Diao 
  To: python-chinese在lists.python.cn 
  Sent: Wednesday, November 01, 2006 1:24 PM
  Subject: Re: [python-chinese] Django book pre-release



  ²»ÖªµÀ»á²»»á³öÖÐÎÄ°æ±¾µÄ
  °®ºÃÕß¿ÉÒÔ²ÎÓë·­ÒëÂð£¿



----------------------------------------------------------------------------
    Date: Wed, 1 Nov 2006 12:46:45 +0800
    From: jejwester在gmail.com
    To: python-chinese在lists.python.cn; python-cn在googlegroups.com
    Subject: [python-chinese] Django book pre-release


    Django book pre-release
    Jacob and I are excited to announce the pre-release of The Django Book!
    Starting today, The Django book is available at djangobook.com. We'll be unveiling one or two chapters each week until the whole book is available. The first two chapters are available now. 
    This is a pre-release, which means we're actively looking for comments, typo fixes, corrections and other suggestions from readers like you, all around the world. We'll try to incorporate your suggestions into the final product, which will be published by Apress early next year. Amazon.com is accepting preorders for the print edition, and the number of preorders so far has been astounding.
    Unlike other pre-release books, we're making this process completely free and open, rather than charging you money for the privilege of submitting book improvements. (That always seemed a bit odd to us.) The book is available under the GNU Free Documentation License, which means it's free to read and redistribute. We're in this to improve the (already excellent) Django documentation, not to make a quick buck. 
    How can you submit comments and typo fixes? By posting inline comments, of course! Jacob has knocked out a fantastic, Django-powered inline comment system that allows you to post comments to any particular paragraph in the book. Read all about it. (For those of you interested in the code, stay tuned. We'll be cleaning it up and releasing it. Many thanks to Jack Slocum for laying the groundwork.)
    So, dive in, let us know what you think, and check back regularly for the latest chapter updates. There's an Atom feed that'll get updated each time we release new material. 



------------------------------------------------------------------------------
  Try the next generation of search with Windows Live? Search today! Try it now! 


------------------------------------------------------------------------------


  _______________________________________________
  python-chinese
  Post: send python-chinese在lists.python.cn
  Subscribe: send subscribe to python-chinese-request在lists.python.cn
  Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
  Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061101/ae2cbea2/attachment.htm 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月01日 星期三 13:38

limodou limodou在gmail.com
星期三 十一月 1 13:38:37 HKT 2006

On 11/1/06, khtvfrc <khtvfrc在126.com> wrote:
>
>
> <<不知道会不会出中文版本的
> <<爱好者可以参与翻译吗?
>     期待!!
>
>                         此上!
> Best regards,
> IT Dept.
> Ever Bright (HK) Limited
>
从它的发布协议上看应该是可以自由翻译的。

-- 
I like python!
UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
My Blog: http://www.donews.net/limodou

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

2006年11月01日 星期三 15:52

风向标 vaneoooo在gmail.com
星期三 十一月 1 15:52:38 HKT 2006

Ö§³Ö·­Òë°¡£¡
Ó¢ÎÄäƮ¹ý

2006/11/1, limodou <limodou在gmail.com>:
>
> On 11/1/06, khtvfrc <khtvfrc在126.com> wrote:
> >
> >
> > <<²»ÖªµÀ»á²»»á³öÖÐÎÄ°æ±¾µÄ
> > <<°®ºÃÕß¿ÉÒÔ²ÎÓë·­ÒëÂð£¿
> >     ÆÚ´ý!!
> >
> >                         ´ËÉÏ!
> > Best regards,
> > IT Dept.
> > Ever Bright (HK) Limited
> >
> ´ÓËüµÄ·¢²¼Ð­ÒéÉÏ¿´Ó¦¸ÃÊÇ¿ÉÒÔ×ÔÓÉ·­ÒëµÄ¡£
>
> --
> I like python!
> UliPad <>: http://wiki.woodpecker.org.cn/moin/UliPad
> My Blog: http://www.donews.net/limodou
> _______________________________________________
> python-chinese
> Post: send python-chinese在lists.python.cn
> Subscribe: send subscribe to python-chinese-request在lists.python.cn
> Unsubscribe: send unsubscribe to  python-chinese-request在lists.python.cn
> Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20061101/ec560c69/attachment.html 

[导入自Mailman归档:http://www.zeuux.org/pipermail/zeuux-python]

如下红色区域有误,请重新填写。

    你的回复:

    请 登录 后回复。还没有在Zeuux哲思注册吗?现在 注册 !

    Zeuux © 2025

    京ICP备05028076号