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

Tian askfor在gmail.com
星期五 八月 3 10:45:26 HKT 2007


 fun(){
return 3
}

p = fun();

ÕâÑù²»ÐÐÂð¡£


On 8/3/07, ºî»ªÂ¡ <hou_hl在sina.com> wrote:
>
>  °¥,·´Õý×îºóÎÒÊÇÓÃÁËÒ»¸öglobal±äÁ¿,±È½ÏÓôÃÆ,Ë­ÈÃÔÛÊÇÐÂÊÖ,pythonÓÖûÓÐÖ¸ÕëÄØ...
>
>  ------------------------------
>  ºî»ªÂ¡
> 2007-08-03
>  ------------------------------
>  *·¢¼þÈË£º* jinq0123在163.com
> *·¢ËÍʱ¼ä£º* 2007-08-03 10:31:06
>  *ÊÕ¼þÈË£º* python-chinese在lists.python.cn
> *³­ËÍ£º*
> *Ö÷Ì⣺* Re: [python-chinese]Ôõô¸Ä±äÐβεÄÖµ£¿
>
>  °ÑËùÓÐÐβδò³ÉÒ»¸ö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
>
> _______________________________________________
> 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/fda8cd9f/attachment-0001.htm 


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