Python论坛  - 讨论区

标题:Re: [python-chinese]今天的一点收获.

2005年07月08日 星期五 20:18

amingsc amingsc at 163.com
Fri Jul 8 20:18:01 HKT 2005

eq:
[b,a]=[1,3]
[a,b]=[b,a]

eq:
[b,a]=[1,3]
c=[b,a]
[a,b]=c

a=3
b=1
c=[b,a]
del a,b
print c
======= 2005-07-08 17:31:00 您在来信中写道:=======

>a=3
>b=1
>
>a,b=b,a
>
>谁可以解释一下原理,为什么a,b数值可以交互,系统层面是如何做到的.
>
>_______________________________________________
>python-chinese list
>python-chinese at lists.python.cn
>http://python.cn/mailman/listinfo/python-chinese
>

= = = = = = = = = = = = = = = = = = = =
			

        致
礼!
 
				 
        amingsc
        amingsc at 163.com
          2005-07-08


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

2005年07月08日 星期五 21:26

Qiangning Hong hongqn at gmail.com
Fri Jul 8 21:26:09 HKT 2005

On 7/8/05, amingsc <amingsc at 163.com> wrote:
> eq:

这个eq啥意思?等于?

> [b,a]=[1,3]
> [a,b]=[b,a]
[...]

-- 
Qiangning Hong

I'm usually annoyed by IDEs because, for instance, they don't use VIM
as an editor. Since I'm hooked to that, all IDEs I've used so far have
failed to impress me.
   -- Sybren Stuvel @ c.l.python

Get Firefox! <http://www.spreadfirefox.com/?q=affiliates&id=67907&t=1>

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号