复制代码def collect_garbage(self): gc.collect() if config_lora.IS_MICROPYTHON: print('[Memory - free: {} allocated: {}]'.format(gc.mem_free(), gc.mem_alloc()))