Python论坛  - 讨论区

标题:[python-chinese] 请教一个语法问题

2005年04月05日 星期二 21:14

heda heda at dianji.com
Tue Apr 5 21:14:08 HKT 2005

在programming python 2.10章节里边有这么一行程序:
res, self.text = self.text, ''
请问怎么理解?
谢谢!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050405/c1c38a2d/attachment.htm

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

2005年04月05日 星期二 22:06

cry zyqmail at 163.net
Tue Apr 5 22:06:32 HKT 2005

python,您好!
  怎么样得到2个datetime类的时间差?有现成的函数吗?

  谢谢。


                    致
礼!

            cry
            zyqmail at 163.net



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

2005年04月05日 星期二 22:58

Qiangning Hong hongqn at gmail.com
Tue Apr 5 22:58:36 HKT 2005

On Apr 5, 2005 9:14 PM, heda <heda at dianji.com> wrote:
> 
> 在programming python 2.10章节里边有这么一行程序:
> res, self.text = self.text, ''
> 请问怎么理解?
> 谢谢!
> 

等价于
res = self.text
self.text = ''


-- 
Qiangning Hong
Get Firefox! <
http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050405/425c7dd1/attachment.html

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

2005年04月07日 星期四 10:50

Eric Hu eric_hu1972 at yahoo.com.cn
Thu Apr 7 10:50:59 HKT 2005

res=self.text
self.text=''

heda 写道:

> 在programming python 2.10章节里边有这么一行程序:
> res, self.text = self.text, ''
> 请问怎么理解?
> 谢谢!
>
>------------------------------------------------------------------------
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>  
>


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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号