use extend a generator to replace list += []
use extend a generator to replace list += []