2007年11月29日 星期四 13:24
code: a=['a','b','c'] b=set(a) //ÕâÀïµÄÕâ¸öset()º¯ÊýÊÇʲôÒâ˼? Ö÷ÒªÆð×Åʲô×÷ÓÃ? -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071129/23e7bd88/attachment.html
2007年11月29日 星期四 13:50
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
2007年11月29日 星期四 13:59
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
2007年11月29日 星期四 14:02
º¹£¬Äã¿ÉÒÔ°Ñ 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
2007年11月29日 星期四 14:04
ллºÏλ£®ÊÖ²áÓп´£®²»¹ý£ÅÎ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
2007年11月29日 星期四 14:06
ʲôÊǼ¯ºÏ£¿¼Ç²»µÃÁË Ê²Ã´ÊǺìºÚÊ÷µÄÐÎʽ¡£ ÔÚ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
2007年11月29日 星期四 14:28
²¢¼¯½»¼¯µÈµÈ¹¦ÄÜÈ¥ÊÖ²áÀïÃæÕÒ¡¡ -----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
Zeuux © 2025
京ICP备05028076号