上一页 1 2 3 4 5 6 7 ··· 9 下一页
摘要: 导出: # -*- coding:utf-8 -*- # author rdj import xlwt header = ['序号','姓名','年龄'] data = [ {'id':1,'name':'mike','age':18}, {'id':2,'name':'jack','age':18 阅读全文
posted @ 2020-03-09 16:51 shijiu520 阅读(169) 评论(0) 推荐(0)
摘要: 1: 查找Docker Hub上的mongo镜像:[root@master001 docker]# docker search mongodb NAME DESCRIPTION STARS OFFICIAL AUTOMATED mongo MongoDB document databases pro 阅读全文
posted @ 2020-03-09 16:42 shijiu520 阅读(522) 评论(0) 推荐(0)
摘要: def scroll_until_loaded1(self): check_height = self.driver.execute_script("return document.body.scrollHeight;") js = r''' function a(h){ var timer = null; timer = setInterval(function(){ console.log(d 阅读全文
posted @ 2019-12-23 09:14 shijiu520 阅读(296) 评论(0) 推荐(0)
摘要: package services import ( "crypto/sha1" "encoding/json" "fmt" "io" "io/ioutil" "math/rand" "net/http" "sort" "strconv" "time" ) var appid string var appsecret string type wxconfig struct... 阅读全文
posted @ 2019-12-11 15:28 shijiu520 阅读(815) 评论(0) 推荐(0)
摘要: // @router /other/download-video [*] func (this *OtherController) DownLoadVideo() { link := this.GetString("link", "") if link == "" { this.toJson(-403, "args err", map[string]string{}) } split := str 阅读全文
posted @ 2019-12-11 15:24 shijiu520 阅读(570) 评论(0) 推荐(0)
摘要: package controllers import ( "github.com/astaxie/beego" ) type BaseController struct { beego.Controller } func (c *BaseController) toJson(code int,msg string,data interface{}) { var jsMap map[... 阅读全文
posted @ 2019-12-11 15:22 shijiu520 阅读(598) 评论(0) 推荐(0)
摘要: package services import ( "github.com/go-redis/redis" ) type RedisService struct { //client *redis.Client } var RedisConn *redis.ClusterClient //var RedisConn *redis.Client func init() { RedisConn = r 阅读全文
posted @ 2019-12-11 15:20 shijiu520 阅读(505) 评论(0) 推荐(0)
摘要: reqUrl := "###" //请求url content := "" cType := "" resp, err := http.PostForm(reqUrl, url.Values{"参数1": {content}, "参数2": {cType}}) if resp != nil { defer func() { e := resp.Body.Close() fmt.Println(e) 阅读全文
posted @ 2019-12-11 15:19 shijiu520 阅读(858) 评论(0) 推荐(0)
摘要: package services import ( crand "crypto/rand" "errors" "fmt" "github.com/astaxie/beego/orm" "io" "math/rand" "strconv" "strings" "time" ) type UtilSer 阅读全文
posted @ 2019-12-11 15:16 shijiu520 阅读(674) 评论(0) 推荐(0)
摘要: package services import ( "bytes" "math" "strconv" "time" ) type TimeUtilService struct { } /** * @des 时间转换函数 * @param atime string 要转换的时间戳(秒) * @return string */ func (this *TimeUtilService)... 阅读全文
posted @ 2019-12-11 15:13 shijiu520 阅读(678) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 9 下一页