2007年04月24日 星期二 23:21
ÈçÏ£º
areacode = {
'010' : '±±¾©',
'021' : 'ÉϺ£',
'022' : 'Ìì½ò',
'023' : 'ÖØÇì'
}
½á¹ûËÀ»îÎÞ·¨Í¨¹ý£¬Ôõô´¦Àí£¿
---------------------------------
ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070424/652b9ce4/attachment-0001.html
2007年04月24日 星期二 23:29
ÔÚ07-4-24£¬±ø ÖÜ <sczhoubing在yahoo.com.cn> дµÀ£º > > ÈçÏ£º > areacode = { > '010' : '±±¾©', > '021' : 'ÉϺ£', > '022' : 'Ìì½ò', > '023' : 'ÖØÇì' > } > ½á¹ûËÀ»îÎÞ·¨Í¨¹ý£¬Ôõô´¦Àí£¿ ±¨Ê²Ã´´íÁË£¿Ó¦¸ÃûɶÎÊÌâ°¡¡£ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070424/e3e7701d/attachment.htm
2007年04月24日 星期二 23:34
Ó¦¸ÃÊDZàÂë²»ÈÏʶ°É£¬ÔÚÎļþÍ·Ö¸¶¨Ò»ÏÂÎļþ±àÂë¿´¿´¿É²»¿ÉÒÔ¡£ ----- Original Message ----- From: Í·Ì«ÔÎ To: python-chinese在lists.python.cn Sent: Tuesday, April 24, 2007 11:29 PM Subject: Re: [python-chinese] ÇëÎÊ×ÖµäÖÐÈçºÎʹÓÃÖÐÎÄ ÔÚ07-4-24£¬±ø ÖÜ <sczhoubing在yahoo.com.cn> дµÀ£º ÈçÏ£º areacode = { '010' : '±±¾©', '021' : 'ÉϺ£', '022' : 'Ìì½ò', '023' : 'ÖØÇì' } ½á¹ûËÀ»îÎÞ·¨Í¨¹ý£¬Ôõô´¦Àí£¿ ±¨Ê²Ã´´íÁË£¿Ó¦¸ÃûɶÎÊÌâ°¡¡£ ------------------------------------------------------------------------------ _______________________________________________ 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/20070424/5cd49d59/attachment.html
2007年04月25日 星期三 04:08
areacode = {
'010' : '北京',
'021' : '上海',
'022' : '天津',
'023' : '重庆'
}
print areacode
for x in areacode:
print x,areacode[x]
没有报错啊。。
可以哦。
加不加编码都可以。建议加。
在 07-4-24,He Jinbo<hezhihuang at 263.net> 写道:
>
> 应该是编码不认识吧,在文件头指定一下文件编码看看可不可以。
>
> ----- Original Message -----
> From: 头太晕
> To: python-chinese at lists.python.cn
> Sent: Tuesday, April 24, 2007 11:29 PM
> Subject: Re: [python-chinese] 请问字典中如何使用中文
>
>
>
> 在07-4-24,兵 周 <sczhoubing at yahoo.com.cn> 写道:
> > 如下:
> > areacode = {
> > '010' : '北京',
> > '021' : '上海',
> > '022' : '天津',
> > '023' : '重庆'
> > }
> > 结果死活无法通过,怎么处理?
>
> 报什么错了?应该没啥问题啊。
>
>
>
>
> ________________________________
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
>
> _______________________________________________
> python-chinese
> Post: send python-chinese at lists.python.cn
> Subscribe: send subscribe to
> python-chinese-request at lists.python.cn
> Unsubscribe: send unsubscribe to
> python-chinese-request at lists.python.cn
> Detail Info:
> http://python.cn/mailman/listinfo/python-chinese
>
--
花开邑大,漫步心月湖。
http://www.ewyu.com/
2007年04月25日 星期三 09:29
µÚÒ»»òµÚ¶þÐÐ¼Ó # -*- coding: gbk -*- »ò # -*- coding: uft-8 -*- ÔÚ07-4-24£¬±ø ÖÜ <sczhoubing在yahoo.com.cn> дµÀ£º > > ÈçÏ£º > areacode = { > '010' : '±±¾©', > '021' : 'ÉϺ£', > '022' : 'Ìì½ò', > '023' : 'ÖØÇì' > } > ½á¹ûËÀ»îÎÞ·¨Í¨¹ý£¬Ôõô´¦Àí£¿ > > ------------------------------ > ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ <http://cn.mail.yahoo.com/> > > > _______________________________________________ > 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 > -- I am Once! I am wentrue! -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070425/94b96bf4/attachment.html
2007年04月25日 星期三 09:35
¹ÜÀíÔ±ÄúºÃ£¬ ÇëÇóÍ˶¨¸ÃÓʼþ£¬¶àл£¡£¡£¡ ________________________________ From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn] On Behalf Of wentrue(I'm Once) Sent: 2007Äê4ÔÂ25ÈÕ 9:30 To: python-chinese在lists.python.cn Subject: Re: [python-chinese] ÇëÎÊ×ÖµäÖÐÈçºÎʹÓÃÖÐÎÄ µÚÒ»»òµÚ¶þÐÐ¼Ó # -*- coding: gbk -*- »ò # -*- coding: uft-8 -*- ÔÚ07-4-24£¬±ø ÖÜ <sczhoubing在yahoo.com.cn> дµÀ£º ÈçÏ£º areacode = { '010' : '±±¾©', '021' : 'ÉϺ£', '022' : 'Ìì½ò', '023' : 'ÖØÇì' } ½á¹ûËÀ»îÎÞ·¨Í¨¹ý£¬Ôõô´¦Àí£¿ ________________________________ ÑÅ»¢Ãâ·ÑÓÊÏä3.5GÈÝÁ¿£¬20M¸½¼þ£¡ <http://cn.mail.yahoo.com/> _______________________________________________ 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 -- I am Once! I am wentrue! -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20070424/71e579d3/attachment.htm
Zeuux © 2025
京ICP备05028076号