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

shily escape jelly1982在gmail.com
星期三 八月 1 11:12:45 HKT 2007


ÎÒÒ²ÊÇÐÂÊÖ,ºÇºÇ, ¶ÔÏóµÄ»°ÎÒÏëÕâÑù¾Í¿ÉÒÔÁË:
def change_state(obj):
    obj.state =  new_state



ÔÚ07-8-1£¬ºî»ªÂ¡ <hou_hl在sina.com> дµÀ£º
>
>  лл~
> ÄÇô°Ñ¶ÔÏó×÷Ϊ²ÎÊýÓ¦¸ÃÔõô±àÂëÄØ£¿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 > дµÀ£º
> >
> >   ¾ÍÏñcÀïÓÃÖ¸ÕëÒ»Ñù£¿
> >  /*-------C---------*/
> >  void fun(int* p)
> >  {
> >      *p =  3;
> >  }
> >
> >  #python
> >  ....
> >  ?
> >  ÎÒÐÂÊÖ£¬Ð»Ð»´ó¼Ò
> >
> >  ------------------------------
> >  ºî»ªÂ¡
> >  2007-08-01
> >
> > _______________________________________________
> > 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
> >
>
>
> _______________________________________________
> 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/20070801/92a21d52/attachment.htm 


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