Python论坛  - 讨论区

标题:[python-chinese] how to add pairs to a dict?

2004年03月12日 星期五 18:31

Anthony Liu antonyliu2002 at yahoo.com
Fri Mar 12 18:31:04 HKT 2004

gracious!

--- "0.706" <0.706 at 163.com> wrote:
> Anthony Liu,您好!
> 
> 	  phone_book['tom']=5678
> 
> ======= 2004-03-12 16:41:30
您在来信中写道:=======
> 
> >I want to keep adding pairs my phone_book dict like
> >so:
> >
> >phone_book={'jack':2313, 'john':3436}
> >
> >And then each time when a new pair is created, for
> >example, 'tom':5678, I want to add it to the dict
> so
> >that the dict becomes 
> >
> >phone_book={'jack':2313, 'john':3436, 'tom':5678}
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Yahoo! Search - Find what you抮e looking for
faster
> >http://search.yahoo.com
> >
> >_______________________________________________
> >python-chinese list
> >python-chinese at lists.python.cn
> >http://python.cn/mailman/listinfo/python-chinese
> 
> = = = = = = = = = = = = = = = = = = = =
> 			
> 
>
        致
> 礼!
>  
> 				 
>
        0.706
>
        0.706 at 163.com
>
          2004-03-12
> 
> > _______________________________________________
> python-chinese list
> python-chinese at lists.python.cn
> http://python.cn/mailman/listinfo/python-chinese
> 


__________________________________
Do you Yahoo!?
Yahoo! Search - Find what you’re looking for faster
http://search.yahoo.com


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

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

    你的回复:

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

    Zeuux © 2024

    京ICP备05028076号