2007年10月11日 星期四 16:54
>>>import sys >>>sys.getrefcount(1) >>>136 >>>a=1 >>>sys.getrefcount(1) >>>137 >>>sys.getrefcount(1) >>>136 Ϊʲôsys.getrefcount(1)ºÍsys.getrefcount(a)µÄ½á¹û²î1£¿ -------------- 下一部分 -------------- Ò»¸öHTML¸½¼þ±»ÒƳý... URL: http://python.cn/pipermail/python-chinese/attachments/20071011/5de20bb8/attachment.htm
2007年10月11日 星期四 22:01
Çë¿´°ïÖú£º Return the reference count of object. The count returned is generally one higher than you might expect, because it includes the (temporary) reference as an argument to getrefcount(). ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠÁí£ºÄãµÄ3¸ösys.getrefcount()µÄ²ÎÊý¶¼ÊÇ1¡£ ÔÚ 07-10-11£¬leopay<leopay在gmail.com> дµÀ£º > >>>import sys > >>>sys.getrefcount(1) > >>>136 > >>>a=1 > > >>>sys.getrefcount(1) > >>>137 > > >>>sys.getrefcount(1) Õâ¸öÓ¦¸ÃÊÇsys.getrefcount(a) > >>>136 > Ϊʲôsys.getrefcount(1)ºÍsys.getrefcount(a)µÄ½á¹û²î1£¿ > > > _______________________________________________ > 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/20071011/d54c4e7a/attachment.htm
2007年10月11日 星期四 22:22
>ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠΪʲôʹÓÃa×ö²ÎÊýµÄʱºò£¬²»»á¶à³öÒ»¸ö²ÎÊýÒýÓã¿ a²»ÊÇÖ¸Ïò¶ÔÏó1Â𣿠ÔÚ07-10-11£¬FireBird <ygonic在gmail.com> дµÀ£º > > Çë¿´°ïÖú£º > > Return the reference count of object. The count returned is generally > one higher than you might expect, because it includes the (temporary) > reference as an argument to getrefcount(). > > ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠ> > Áí£ºÄãµÄ3¸ösys.getrefcount ()µÄ²ÎÊý¶¼ÊÇ1¡£ > ÔÚ 07-10-11£¬leopay<leopay在gmail.com> дµÀ£º > > >>>import sys > > >>>sys.getrefcount(1) > > >>>136 > > >>>a=1 > > > > >>>sys.getrefcount(1) > > >>>137 > > > > >>>sys.getrefcount(1) > > Õâ¸öÓ¦¸ÃÊÇsys.getrefcount(a) > > > >>>136 > > Ϊʲôsys.getrefcount(1)ºÍsys.getrefcount (a)µÄ½á¹û²î1£¿ > > > > > > _______________________________________________ > > 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/20071011/d94d0246/attachment.html
2007年10月11日 星期四 22:32
¾ßÌåµÄʵÏÖ»úÖÆÎÒûÓÐÑо¿£¬²»¹ý¸ù¾ÝCÓïÑÔµÄÔÀí£¬¶ÔÓÚ³£Êý×öΪ²ÎÊý£¬ÔÚº¯ÊýÖÐÆäʵÐèÒª×Ô¼ºÔÙÉêÃ÷ Ò»¸öÁÙʱµÄ±äÁ¿À´±£´æËü¡£Ò²¾ÍÊÇËùνµÄ×°Ïä²Ù×÷¡£ ÔÚ07-10-11£¬leopay <leopay在gmail.com> дµÀ£º > > >ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠ> ΪʲôʹÓÃa×ö²ÎÊýµÄʱºò£¬²»»á¶à³öÒ»¸ö²ÎÊýÒýÓã¿ > a²»ÊÇÖ¸Ïò¶ÔÏó1Â𣿠> > > ÔÚ07-10-11£¬FireBird <ygonic在gmail.com> дµÀ£º > > > > Çë¿´°ïÖú£º > > > > Return the reference count of object. The count returned is > > generally > > one higher than you might expect, because it includes the > > (temporary) > > reference as an argument to getrefcount() . > > > > ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠ> > > > Áí£ºÄãµÄ3¸ösys.getrefcount ()µÄ²ÎÊý¶¼ÊÇ1¡£ > > ÔÚ 07-10-11£¬leopay< leopay在gmail.com> дµÀ£º > > > >>>import sys > > > >>>sys.getrefcount(1) > > > >>>136 > > > >>>a=1 > > > > > > >>>sys.getrefcount(1) > > > >>>137 > > > > > > >>>sys.getrefcount(1) > > > > Õâ¸öÓ¦¸ÃÊÇsys.getrefcount(a) > > > > > >>>136 > > > Ϊʲôsys.getrefcount(1)ºÍsys.getrefcount (a)µÄ½á¹û²î1£¿ > > > > > > > > > _______________________________________________ > > > 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 > > > > > _______________________________________________ > 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/20071011/30331a5d/attachment.htm
2007年10月11日 星期四 22:42
thx ÔÚ07-10-11£¬FireBird <ygonic在gmail.com> дµÀ£º > > ¾ßÌåµÄʵÏÖ»úÖÆÎÒûÓÐÑо¿£¬²»¹ý¸ù¾ÝCÓïÑÔµÄÔÀí£¬¶ÔÓÚ³£Êý×öΪ²ÎÊý£¬ÔÚº¯ÊýÖÐÆäʵÐèÒª×Ô¼ºÔÙÉêÃ÷ > Ò»¸öÁÙʱµÄ±äÁ¿À´±£´æËü¡£Ò²¾ÍÊÇËùνµÄ×°Ïä²Ù×÷¡£ > > ÔÚ07-10-11£¬leopay <leopay在gmail.com> дµÀ£º > > > > >ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠ> > ΪʲôʹÓÃa×ö²ÎÊýµÄʱºò£¬²»»á¶à³öÒ»¸ö²ÎÊýÒýÓã¿ > > a²»ÊÇÖ¸Ïò¶ÔÏó1Â𣿠> > > > > > ÔÚ07-10-11£¬FireBird <ygonic在gmail.com> дµÀ£º > > > > > > Çë¿´°ïÖú£º > > > > > > Return the reference count of object. The count returned is > > > generally > > > one higher than you might expect, because it includes the > > > (temporary) > > > reference as an argument to getrefcount() . > > > > > > ʹÓÃ1×ö²ÎÊýµÄʱºò£¬Ëü»á¶àÒ»¸ö²ÎÊýÒýÓ㬶øʹÓÃa×ö²ÎÊý£¬Ôò²»»á¶à³öÕâÒ»¸ö²ÎÊýÒýÓᣠ> > > > > > Áí£ºÄãµÄ3¸ösys.getrefcount ()µÄ²ÎÊý¶¼ÊÇ1¡£ > > > ÔÚ 07-10-11£¬leopay< leopay在gmail.com> дµÀ£º > > > > >>>import sys > > > > >>>sys.getrefcount(1) > > > > >>>136 > > > > >>>a=1 > > > > > > > > >>>sys.getrefcount(1) > > > > >>>137 > > > > > > > > >>>sys.getrefcount(1) > > > > > > Õâ¸öÓ¦¸ÃÊÇsys.getrefcount(a) > > > > > > > >>>136 > > > > Ϊʲôsys.getrefcount(1)ºÍsys.getrefcount (a)µÄ½á¹û²î1£¿ > > > > > > > > > > > > _______________________________________________ > > > > 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 > > > > > > > > > _______________________________________________ > > 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/20071011/88e3fb0f/attachment.htm
Zeuux © 2025
京ICP备05028076号