摘要: package main import ( "net/http" "fmt" "io/ioutil" "strings" ) func downloadJpg(url string,file_name string) { client := &http.Client{} req,err := htt 阅读全文
posted @ 2020-06-11 23:37 brady-wang 阅读(502) 评论(0) 推荐(0)
摘要: package main import ( "net/http" "fmt" "io/ioutil" "regexp" ) var url string = "https://tieba.baidu.com/p/5518324938?red_tag=1795043739" var reEmail = 阅读全文
posted @ 2020-06-11 22:43 brady-wang 阅读(420) 评论(0) 推荐(0)
摘要: 使用库 https://github.com/antchfx/htmlquery package main import ( "fmt" "github.com/antchfx/htmlquery" "golang.org/x/net/html" "golang.org/x/net/html/cha 阅读全文
posted @ 2020-06-11 18:11 brady-wang 阅读(558) 评论(0) 推荐(0)
摘要: package main import ( "bufio" "fmt" "io/ioutil" "net/http" "os" ) func main() { client := &http.Client{} req,err := http.NewRequest("GET","http://tool 阅读全文
posted @ 2020-06-11 15:47 brady-wang 阅读(439) 评论(0) 推荐(0)
摘要: <?php use App\Services\UploadService; use Maatwebsite\Excel\Facades\Excel; class ExcelTest extends \TestCase { /** * phpunit --filter testAdd tests/ad 阅读全文
posted @ 2020-06-11 13:46 brady-wang 阅读(954) 评论(0) 推荐(0)
摘要: 查看脚本文件是dos格式还是unix格式的几种办法。(1)cat -A filename 从显示结果可以判断,dos格式的文件行尾为^M$,unix格式的文件行尾为$;(2)od -t x1 filename 如果看到输出内容中存在0d 0a的字符,那么文件是dos格式,如果只有0a,则是unix格 阅读全文
posted @ 2020-06-11 09:28 brady-wang 阅读(253) 评论(0) 推荐(0)