[python-chinese] 怎么改变形参的值?

katkat lim limkatkat在gmail.com
星期五 八月 3 10:39:25 HKT 2007


ÓÃÖµ·µ»Ø°¡¡£
def a():
      return 1, 2, 3

x1, x2, x3 = 'a', 'b', 'c'
 x1, x2, x3 = a()


ÔÚ07-8-3£¬jinq0123在163.com <jinq0123在163.com> дµÀ£º
>
> °ÑËùÓÐÐβδò³ÉÒ»¸ölist¶ÔÏóÐв»ÐУ¿
>
> swap_ab([a, b])
>
> ºî»ªÂ¡ wrote:
> > лл~
> > ÄÇô°Ñ¶ÔÏó×÷Ϊ²ÎÊýÓ¦¸ÃÔõô±àÂëÄØ£¿pythonµÄº¯ÊýÓÖûÓÐÖÆ¶¨²ÎÊýÀàÐÍ
> > ÎÒÊÇpythonÐÂÊÖ£¬Ð»Ð»
> > ------------------------------------------------------------------------
> > ºî»ªÂ¡
> > 2007-08-01
> > ------------------------------------------------------------------------
> > *·¢¼þÈË£º* shily escape
> > *·¢ËÍʱ¼ä£º* 2007-08-01 10:56:00
> > *ÊÕ¼þÈË£º* python-chinese在lists.python.cn
> > *³­ËÍ£º*
> > *Ö÷Ì⣺* Re: [python-chinese]Ôõô¸Ä±äÐβεÄÖµ£¿
> > pythonÓ¦¸ÃÊÇ´«ÖµµÄ·½Ê½,Ò²¾ÍÊÇ˵ԭ×ÓÀàÐÍÏñintÊÇ×ö²»µ½´«ÒýÓõÄ, ¶ÔÏóµÄ·½
> > ʽӦ¸ÃÊÇ¿ÉÒÔµÄ,¶ÔÏóµÄ´«µÝÓ¦¸ÃÒ²ÊÇ´«Öµ,Ö»ÊǸıäµÄÊǶÔÏóÄÚ²¿µÄ״̬, ¶ø²»
> > ÊǸıä¶ÔÏóµÄÒýÓÃ.
> >
> > ÔÚ07-8-1£¬*ºî»ªÂ¡* <hou_hl在sina.com <mailto:hou_hl在sina.com>> дµÀ£º
> >
> >     ¾ÍÏñcÀïÓÃÖ¸ÕëÒ»Ñù£¿
> >     /*-------C---------*/
> >     void fun(int* p)
> >     {
> >     *p = 3;
> >     }
> >     #python
> >     ....
> >     ?
> >     ÎÒÐÂÊÖ£¬Ð»Ð»´ó¼Ò
> >
> ------------------------------------------------------------------------
> >     ºî»ªÂ¡
> >     2007-08-01
> >
> >     _______________________________________________
> >     python-chinese
> >     Post: send python-chinese在lists.python.cn
> >     <mailto:python-chinese在lists.python.cn>
> >     Subscribe: send subscribe to
> >     python-chinese-request在lists.python.cn
> >     <mailto:python-chinese-request在lists.python.cn>
> >     Unsubscribe: send unsubscribe to
> >     python-chinese-request在lists.python.cn
> >     <mailto:python-chinese-request在lists.python.cn>
> >     Detail Info: http://python.cn/mailman/listinfo/python-chinese
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > 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
>
>
> --
> blog: http://blog.csdn.net/jq0123
>
>
>
> _______________________________________________
> 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/20070803/38beeb6a/attachment.htm 


关于邮件列表 python-chinese 的更多信息