Python论坛  - 讨论区

标题:[python-chinese] python函数问题

2007年11月29日 星期四 13:24

篱笆 nameliba在gmail.com
星期四 十一月 29 13:24:11 HKT 2007

code:
a=['a','b','c']
b=set(a)
//ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
Ö÷ÒªÆð×Åʲô×÷ÓÃ?
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071129/23e7bd88/attachment.html 

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

2007年11月29日 星期四 13:50

Liming_Do Liming_Do在smics.com
星期四 十一月 29 13:50:59 HKT 2007

PythonÔÚ°²×°µÄʱºò»áÓÐManuals£¬ÓÐÎÊÌâ¿ÉÒÔÔÚÀïÃæÏȲéÒ»ÏÂ
´ÓÒ»¸öÐòÁÐÖÐÌÞ³ýÖظ´µÄÔªËØ£¬²úÉúÒ»¸öδÅÅÐòµÄÐòÁÐ
>>> a = ['a','b','c','a','c']
>>> b = set(a)
>>> b
set(['a', 'c', 'b'])
 

-----Original Message-----
From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn]On Behalf Of Àé°Ê
Sent: Thursday, November 29, 2007 1:24 PM
To: pythonÓʼþÁбí
Subject: [python-chinese] pythonº¯ÊýÎÊÌâ


code:
a=['a','b','c']
b=set(a)
//ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
Ö÷ÒªÆð×Åʲô×÷ÓÃ?

-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20071129/96245368/attachment.htm 

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

2007年11月29日 星期四 13:59

东子/hydon hydonlee在gmail.com
星期四 十一月 29 13:59:25 HKT 2007

en. Ö§³Ö¿´ÊÖ²á.

setÊÇÒ»ÖÖÊý¾ÝÀàÐÍ, ½Ð¼¯ºÏ. Óëlist²î²»¶à, Ö»²»¹ý, ¼¯ºÏÄÚÊÇûÓÐÖظ´µÄÔªËصÄ(¿ÉÒԲο¼Êýѧ¸ÅÄî)
set()ÊÇÉú³ÉÒ»¸ö¼¯ºÏ. set()ÐèÒª´«ÈëÒ»¸ö¿Éµü´ú¶ÔÏó×öΪ²ÎÊý.

>>> a = set([])
>>> a
set([])
>>> type(a)



ÔÚ07-11-29£¬Liming_Do <Liming_Do在smics.com> дµÀ£º
>
>  PythonÔÚ°²×°µÄʱºò»áÓÐManuals£¬ÓÐÎÊÌâ¿ÉÒÔÔÚÀïÃæÏȲéÒ»ÏÂ
> ´ÓÒ»¸öÐòÁÐÖÐÌÞ³ýÖظ´µÄÔªËØ£¬²úÉúÒ»¸öδÅÅÐòµÄÐòÁÐ
> >>> a = ['a','b','c','a','c']
> >>> b = set(a)
> >>> b
> set(['a', 'c', 'b'])
>
>
> -----Original Message-----
> *From:* python-chinese-bounces在lists.python.cn [mailto:
> python-chinese-bounces在lists.python.cn]*On Behalf Of *Àé°Ê
> *Sent:* Thursday, November 29, 2007 1:24 PM
> *To:* pythonÓʼþÁбí
> *Subject:* [python-chinese] pythonº¯ÊýÎÊÌâ
>
> code:
> a=['a','b','c']
> b=set(a)
> //ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
> Ö÷ÒªÆð×Åʲô×÷ÓÃ?
>
>
> _______________________________________________
> 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/20071129/a61a11fe/attachment.htm 

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

2007年11月29日 星期四 14:02

lai yonghao lanphaday在gmail.com
星期四 十一月 29 14:02:45 HKT 2007

º¹£¬Äã¿ÉÒÔ°Ñ set ÓÃÒÔÌÞ³ýÖظ´£¬µ« set ¾ø·Ç½öÓÃÒÔÈ¥³ýÖظ´°¡¡£

set ¾ÍÊǼ¯ºÏ£¬Ò»ÖÖÊý¾Ý½á¹¹£¬ÄÚ²¿ÊµÏÖÒ»°ãÓúìºÚÊ÷µÄÐÎʽ¡£


ÔÚ07-11-29£¬Liming_Do <Liming_Do在smics.com> дµÀ£º
>
>  PythonÔÚ°²×°µÄʱºò»áÓÐManuals£¬ÓÐÎÊÌâ¿ÉÒÔÔÚÀïÃæÏȲéÒ»ÏÂ
> ´ÓÒ»¸öÐòÁÐÖÐÌÞ³ýÖظ´µÄÔªËØ£¬²úÉúÒ»¸öδÅÅÐòµÄÐòÁÐ
> >>> a = ['a','b','c','a','c']
> >>> b = set(a)
> >>> b
> set(['a', 'c', 'b'])
>
>
> -----Original Message-----
> *From:* python-chinese-bounces在lists.python.cn [mailto:
> python-chinese-bounces在lists.python.cn]*On Behalf Of *Àé°Ê
> *Sent:* Thursday, November 29, 2007 1:24 PM
> *To:* pythonÓʼþÁбí
> *Subject:* [python-chinese] pythonº¯ÊýÎÊÌâ
>
> code:
> a=['a','b','c']
> b=set(a)
> //ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
> Ö÷ÒªÆð×Åʲô×÷ÓÃ?
>
>
> _______________________________________________
> 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/20071129/f4231327/attachment.html 

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

2007年11月29日 星期四 14:04

篱笆 nameliba在gmail.com
星期四 十一月 29 14:04:58 HKT 2007

ллºÏλ£®ÊÖ²áÓп´£®²»¹ý£ÅÎIJîÁ˵ãû¶®

ÔÚ07-11-29£¬¶«×Ó/hydon <hydonlee在gmail.com> дµÀ£º
>
> en. Ö§³Ö¿´ÊÖ²á.
>
> setÊÇÒ»ÖÖÊý¾ÝÀàÐÍ, ½Ð¼¯ºÏ. Óëlist²î²»¶à, Ö»²»¹ý, ¼¯ºÏÄÚÊÇûÓÐÖظ´µÄÔªËصÄ(¿ÉÒԲο¼Êýѧ¸ÅÄî)
> set()ÊÇÉú³ÉÒ»¸ö¼¯ºÏ. set()ÐèÒª´«ÈëÒ»¸ö¿Éµü´ú¶ÔÏó×öΪ²ÎÊý.
>
> >>> a = set([])
> >>> a
> set([])
> >>> type(a)
> 
>
>
> ÔÚ07-11-29£¬Liming_Do <Liming_Do在smics.com> дµÀ£º
> >
> >  PythonÔÚ°²×°µÄʱºò»áÓÐManuals£¬ÓÐÎÊÌâ¿ÉÒÔÔÚÀïÃæÏȲéÒ»ÏÂ
> > ´ÓÒ»¸öÐòÁÐÖÐÌÞ³ýÖظ´µÄÔªËØ£¬²úÉúÒ»¸öδÅÅÐòµÄÐòÁÐ
> > >>> a = ['a','b','c','a','c']
> > >>> b = set(a)
> > >>> b
> > set(['a', 'c', 'b'])
> >
> >
> > -----Original Message-----
> > *From:* python-chinese-bounces在lists.python.cn [mailto:
> > python-chinese-bounces在lists.python.cn]*On Behalf Of *Àé°Ê
> > *Sent:* Thursday, November 29, 2007 1:24 PM
> > *To:* pythonÓʼþÁбí
> > *Subject:* [python-chinese] pythonº¯ÊýÎÊÌâ
> >
> > code:
> > a=['a','b','c']
> > b=set(a)
> > //ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
> > Ö÷ÒªÆð×Åʲô×÷ÓÃ?
> >
> >
> > _______________________________________________
> > 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/20071129/d6bc391b/attachment.htm 

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

2007年11月29日 星期四 14:06

篱笆 nameliba在gmail.com
星期四 十一月 29 14:06:10 HKT 2007

ʲôÊǼ¯ºÏ£¿¼Ç²»µÃÁË
ʲôÊǺìºÚÊ÷µÄÐÎʽ¡£


ÔÚ07-11-29£¬Liming_Do <Liming_Do在smics.com> дµÀ£º
>
>  PythonÔÚ°²×°µÄʱºò»áÓÐManuals£¬ÓÐÎÊÌâ¿ÉÒÔÔÚÀïÃæÏȲéÒ»ÏÂ
> ´ÓÒ»¸öÐòÁÐÖÐÌÞ³ýÖظ´µÄÔªËØ£¬²úÉúÒ»¸öδÅÅÐòµÄÐòÁÐ
> >>> a = ['a','b','c','a','c']
> >>> b = set(a)
> >>> b
> set(['a', 'c', 'b'])
>
>
> -----Original Message-----
> *From:* python-chinese-bounces在lists.python.cn [mailto:
> python-chinese-bounces在lists.python.cn] *On Behalf Of *Àé°Ê
> *Sent:* Thursday, November 29, 2007 1:24 PM
> *To:* pythonÓʼþÁбí
> *Subject:* [python-chinese] pythonº¯ÊýÎÊÌâ
>
> code:
> a=['a','b','c']
> b=set(a)
> //ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
> Ö÷ÒªÆð×Åʲô×÷ÓÃ?
>
>
> _______________________________________________
> 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/20071129/81457d48/attachment.html 

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

2007年11月29日 星期四 14:28

Liming_Do Liming_Do在smics.com
星期四 十一月 29 14:28:33 HKT 2007

²¢¼¯½»¼¯µÈµÈ¹¦ÄÜÈ¥ÊÖ²áÀïÃæÕÒ¡­¡­

-----Original Message-----
From: python-chinese-bounces在lists.python.cn [mailto:python-chinese-bounces在lists.python.cn]On Behalf Of lai yonghao
Sent: Thursday, November 29, 2007 2:03 PM
To: python-chinese在lists.python.cn
Subject: Re: [python-chinese] pythonº¯ÊýÎÊÌâ


º¹£¬Äã¿ÉÒÔ°Ñ set ÓÃÒÔÌÞ³ýÖظ´£¬µ« set ¾ø·Ç½öÓÃÒÔÈ¥³ýÖظ´°¡¡£
 
set ¾ÍÊǼ¯ºÏ£¬Ò»ÖÖÊý¾Ý½á¹¹£¬ÄÚ²¿ÊµÏÖÒ»°ãÓúìºÚÊ÷µÄÐÎʽ¡£

 
ÔÚ07-11-29£¬Liming_Do < Liming_Do在smics.com> дµÀ£º 

PythonÔÚ°²×°µÄʱºò»áÓÐManuals£¬ÓÐÎÊÌâ¿ÉÒÔÔÚÀïÃæÏȲéÒ»ÏÂ
´ÓÒ»¸öÐòÁÐÖÐÌÞ³ýÖظ´µÄÔªËØ£¬²úÉúÒ»¸öδÅÅÐòµÄÐòÁÐ
>>> a = ['a','b','c','a','c']
>>> b = set(a)
>>> b
set(['a', 'c', 'b'])

 

-----Original Message-----
From: python-chinese-bounces在lists.python.cn [mailto: python-chinese-bounces在lists.python.cn] On Behalf Of Àé°Ê
Sent: Thursday, November 29, 2007 1:24 PM
To: pythonÓʼþÁбí
Subject: [python-chinese] pythonº¯ÊýÎÊÌâ


code:
a=['a','b','c']
b=set(a)
//ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼?
Ö÷ÒªÆð×Åʲô×÷ÓÃ?


_______________________________________________
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/20071129/8c0eac0f/attachment.html 

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

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

    你的回复:

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

    Zeuux © 2025

    京ICP备05028076号