09 2019 档案
摘要:```golang //参考 https://segmentfault.com/a/1190000012214571 //参考 https://studygolang.com/articles/2215 func bar()(name string){ //use p fmt.Println("xx
阅读全文
摘要:```golang //参考 https://blog.csdn.net/weixin_42100098/article/details/80142523 package main import "fmt" func main() { /* 位运算符:将数值转为二进制,按位操作 &:按位与,都为1才为1,有一个为0就为0 |:按位或,都为0才为0,有衣蛾为1就为1 ^:异或操作,不同为1,相同为0
阅读全文
摘要:```golang // 参考:https://studygolang.com/articles/15905?fr=sidebar // iota迭代定义常量 //const配合iota关键字使用,可以定义一组由0开始+1迭代的常量 演示语法: const ( gender_secret = iota gender_male // = 1 gender_female // = 2 ) //此时,三
阅读全文
摘要:```python """ https://labs.play with docker.com/ docker pull nginx == daocker pull nginx:latest 2.docker images查看本地有哪些镜像 3.运行: docker d p 80:80 run ng
阅读全文
摘要:```golang //原文链接:https://www.jianshu.com/p/a0569157c418 golang mysql拼接子查询 使用fmt.Sprintf拼接SQL 实例代码 func Select(ids []string) string { idStr := strings.Join(ids, "','") sqlText := "select id, name, age,
阅读全文