python获取引用对象的个数

import sys
sys.getrefcount()

  比实际的要大一

 

posted @ 2017-12-20 14:58  leeQQQ  阅读(1505)  评论(0编辑  收藏  举报