2018年8月1日

摘要: 嗯,就像标题说的那么简单而已&的并发功能time for i in `grep server /etc/hosts | awk '{print $1}'`; do (ssh $i "echo 123; sleep 1; echo 456" &); do... 阅读全文

posted @ 2018-08-01 16:41 #大囚长# 阅读(142) 评论(0) 推荐(0)

摘要: 利用go语言的协程并发优势爬取网页速度相当之快,博客园100页新闻标题只需一秒即可全部爬取package mainimport ( "bytes" "fmt" "github.com/PuerkitoBio/goquery" "l... 阅读全文

posted @ 2018-08-01 14:43 #大囚长# 阅读(79) 评论(0) 推荐(0)