foyoux / aligo

🔥简单、易用、可扩展的阿里云盘 API 接口库🚀
GNU General Public License v3.0
849 stars 156 forks source link

如何退出aligo实例 #68

Closed Biubush closed 1 year ago

Biubush commented 1 year ago

创建完一个aligo对象后,如何退出登录销毁这个对象,使用del发现只能删除引用不能回收实例,官方wiki里没找到方法,故来求作者大大指点一二。

lemisky commented 1 year ago

hello hello

lemisky commented 1 year ago

python 里如何一个对象使用了,会自动回收的,不知道你怎么 确定 del 后没有被回收的

lemisky commented 1 year ago

你也可以主动调用,参考 gc 模块 https://docs.python.org/zh-cn/3/library/gc.html#module-gc

Biubush commented 1 year ago

你也可以主动调用,参考 gc 模块 https://docs.python.org/zh-cn/3/library/gc.html#module-gc

非常感谢,问题已解决❥(^_-)