摘要: 析构函数 1 class My:#类 2 def __init__(self): 3 print('构造函数,类在实例化时,会自动执行它') 4 # self.client = pymongo.MongoClient(host='',port=27017) 5 def __del__(self):# 阅读全文
posted @ 2018-07-30 20:39 Mezhou 阅读(278) 评论(0) 推荐(0) 编辑