11 2019 档案

摘要:一、代码 package main import ( "fmt" "github.com/microcosm-cc/bluemonday" "github.com/russross/blackfriday" "io/ioutil" "os" ) func ReadAll(filePth string 阅读全文
posted @ 2019-11-26 16:54 Maple_feng 阅读(1469) 评论(0) 推荐(0) 编辑
摘要:一、代码 package main import ( "fmt" "strings" "strconv" "time" ) // StrToIntMonth 字符串月份转整数月份 func StrToIntMonth(month string) int { var data = map[string 阅读全文
posted @ 2019-11-26 16:25 Maple_feng 阅读(492) 评论(0) 推荐(0) 编辑
摘要:一、代码 package main import ( "fmt" "regexp" ) func main() { text := `Hello 世界!123 Go.` // 查找连续的小写字母 reg := regexp.MustCompile(`[a-z]+`) fmt.Printf("%q\n 阅读全文
posted @ 2019-11-26 16:00 Maple_feng 阅读(1798) 评论(0) 推荐(0) 编辑
摘要:一、安装模块 pip install channels pip install channels-redis 二、代码 #websocket_v1/settings.py INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth' 阅读全文
posted @ 2019-11-19 15:41 Maple_feng 阅读(724) 评论(1) 推荐(0) 编辑
摘要:一、短url的原理 什么是短url: 简单讲就是把普通正常访问的网址,转换成比较短的网址,例如:https://www.cnblogs.com/angelyan/articles/10667354.html#_label0 转成https://dwz.cn/p8VGVkMt 作用优点:短,字符少,美 阅读全文
posted @ 2019-11-10 16:43 Maple_feng 阅读(957) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示