Python论坛  - 讨论区

标题:Re: [python-chinese] 请教关于元组的问题

2005年05月23日 星期一 15:33

Carambo qutr at tjub.com.cn
Mon May 23 15:33:56 HKT 2005

ÏëÁËÏ룬ÕâÓ¦¸ÃÊÇPythonµÄÓ²ÐԹ涨°É¡£
singleton = (2)ºó singleton ÊÇÒ»¸öÕûÐÎÖµ¡£


Carambo £¬ qutr at tjub.com.cn 
2005-5-23 
----- ÊÕµ½ÒÔÏÂÀ´ÐÅÄÚÈÝ ----- 
·¢¼þÈË: „¢ÀÚ 
ÊÕ¼þÈË: python-chinese 
ʱ  ¼ä: 2005-05-23, 12:16:59
Ö÷  Ìâ: [python-chinese] Çë½Ì¹ØÓÚÔª×éµÄÎÊÌâ


º¬ÓÐ0¸ö»ò1¸öÏîÄ¿µÄÔª×é¡£Ò»¸ö¿ÕµÄÔª×éÓÉÒ»¶Ô¿ÕµÄÔ²À¨ºÅ×é³É£¬Èçmyempty = ()¡£È»¶ø£¬º¬ÓÐ
µ¥¸öÔªËصÄÔª×é¾Í²»ÄÇô¼òµ¥ÁË¡£Äã±ØÐëÔÚµÚÒ»¸ö£¨Î¨Ò»Ò»¸ö£©ÏîÄ¿ºó¸úÒ»¸ö¶ººÅ£¬ÕâÑùPython
²ÅÄÜÇø·ÖÔª×éºÍ±í´ïʽÖÐÒ»¸ö´øÔ²À¨ºÅµÄ¶ÔÏó¡£¼´Èç¹ûÄãÏëÒªµÄÊÇÒ»¸ö°üº¬ÏîÄ¿2µÄÔª×éµÄʱ
ºò£¬ÄãÓ¦¸ÃÖ¸Ã÷singleton = (2 , )¡£

--Õª×Ô¡¶¼òÃ÷ Python ½Ì³Ì¡·

ÎÊÌâ1£ºsingleton = (2 , )ÊÇÔª×é¶øsingleton = (2)¾Í²»ÊÇÔª×飿
ÎÊÌâ2£ºsingleton = (2)²»ÊÇÔª×éÊÇʲôÄØ£¿ 

_______________________________________________
python-chinese list
python-chinese at lists.python.cn
http://python.cn/mailman/listinfo/python-chinese
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.exoweb.net/pipermail/python-chinese/attachments/20050523/f16d3888/attachment.htm

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

2005年05月24日 星期二 08:13

cpunion cpunion at 263.net
Tue May 24 08:13:03 HKT 2005

Õâ¸öÊDZØÐëµÄ£¬·ñÔòµÄ»°£¬4 * (3 + 2)Æñ²»³ÉÁËÕûÊý4ºÍÒ»¸ötupleÏà³Ë£¿

ÒòΪÀ¨ºÅÓжàÖØÓïÒ壬ËùÒÔÒªÇø·Ö

Carambo дµÀ:

> ÏëÁËÏ룬ÕâÓ¦¸ÃÊÇPythonµÄÓ²ÐԹ涨°É¡£
> singleton = (2)ºó singleton ÊÇÒ»¸öÕûÐÎÖµ¡£
> Carambo£¬ qutr at tjub.com.cn qutr at tjub.com.cn>
> 2005-5-23
>
>     ----- ÊÕµ½ÒÔÏÂÀ´ÐÅÄÚÈÝ -----
>     *·¢¼þÈË:* „¢ÀÚ liul at dhc.com.cn>
>     *ÊÕ¼þÈË:* python-chinese python-chinese at lists.python.cn>
>     *ʱ ¼ä:* 2005-05-23, 12:16:59
>     *Ö÷ Ìâ:* [python-chinese] Çë½Ì¹ØÓÚÔª×éµÄÎÊÌâ
>
>     º¬ÓÐ0¸ö»ò1¸öÏîÄ¿µÄÔª×é¡£Ò»¸ö¿ÕµÄÔª×éÓÉÒ»¶Ô¿ÕµÄÔ²À¨ºÅ×é³É£¬Èç
>     myempty = ()¡£È»¶ø£¬º¬ÓÐ
>     µ¥¸öÔªËصÄÔª×é¾Í²»ÄÇô¼òµ¥ÁË¡£Äã±ØÐëÔÚµÚÒ»¸ö£¨Î¨Ò»Ò»¸ö£©ÏîÄ¿ºó¸úÒ»
>     ¸ö¶ººÅ£¬ÕâÑùPython
>     ²ÅÄÜÇø·ÖÔª×éºÍ±í´ïʽÖÐÒ»¸ö´øÔ²À¨ºÅµÄ¶ÔÏó¡£¼´Èç¹ûÄãÏëÒªµÄÊÇÒ»¸ö°üº¬
>     ÏîÄ¿2µÄÔª×éµÄʱ
>     ºò£¬ÄãÓ¦¸ÃÖ¸Ã÷singleton = (2 , )¡£
>
>     --Õª×Ô¡¶¼òÃ÷ Python ½Ì³Ì¡·
>
>     ÎÊÌâ1£ºsingleton = (2 , )ÊÇÔª×é¶øsingleton = (2)¾Í²»ÊÇÔª×飿
>     ÎÊÌâ2£º singleton = (2)< /FONT > ²»ÊÇÔª×éÊÇʲôÄØ£¿
>
>     _______________________________________________
>     python-chinese list
>     python-chinese at lists.python.cn
>     20python-chinese at lists.python.cn>
>     http://python.cn/mailman/listinfo/python-chinese
>
>------------------------------------------------------------------------
>
>_______________________________________________
>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号