node》
http,route,fs,path,util,createReadStream,createWriteStream
全局对象
__filename __dirname process settimeout setinterval console
// 压缩 input.txt 文件为 input.txt.gz
fs.createReadStream('input.txt')
.pipe(zlib.createGzip())
.pipe(fs.createWriteStream('input.txt.gz'));
// 解压 input.txt.gz 文件为 input.txt
fs.createReadStream('input.txt.gz')
.pipe(zlib.createGunzip())
.pipe(fs.createWriteStream('input.txt'));
koa》
npm install koa-generator -g koa2 prj
koa-router
koa-bodyparser
koa-cors
sequelize
mysql
co-mysql
flask》
pip install flask