03 2021 档案
摘要:改hosts文件C:\Windows\System32\drivers\etc 1.登录 https://www.ipaddress.com 2.查询ip地址 github.global.ssl.fastly.net github.com 3.下面是我的配置 140.82.114.3 github.
阅读全文
摘要:Go环境搭建 1.下载: https://golang.org/dl/ 2.环境配置 环境变量 GOROOT :G:\Go GOPATH : G:\GoPath path : %GOROOT%\bin path : %GOPATH%\bin 3.其他 go env -w GOPROXY=https:
阅读全文
摘要:Iris-go 集成swagger swagger官方文档https://github.com/iris-contrib/swagger 1.安装swgger 配置代理 go env -w GOPROXY=https://goproxy.cn,direct go get -u github.com/
阅读全文
摘要:SELECT count(*) AS Count , CASE WHEN MAX(ad.updated_at) > MAX(ad.deleted_at) THEN ( UNIX_TIMESTAMP(now()) - UNIX_TIMESTAMP(MAX(ad.updated_at)) ) / 60
阅读全文
摘要:Tbls源码地址 https://github.com/k1LoW/tbls.git 快速使用 1.下载(go环境下) go get github.com/k1LoW/tbls 2.建立配置文件repository/tbls.yml # DSN (Database Source Name) to c
阅读全文
摘要:在读取txt文件,处理每一行字符串,使用切片 sStr[3:] 由于是txt文件,行末尾是隐藏了换行符,需要先删掉所有换行符再使用 sStr=sStr.replace("\n","")
阅读全文
摘要:# 找字符串substr在str中第time次出现的位置 def findSubStrIndex(substr, str, time): times = str.count(substr) if (times == 0) or (times < time): pass else: i = 0 ind
阅读全文

浙公网安备 33010602011771号