摘要: 代码如下: 1 package main 2 3 import ( 4 "fmt" 5 "regexp" 6 ) 7 8 // 判断str是否与白名单中的正则表达式匹配 9 func generateMatch(whiteList []string) func(string) bool { 10 / 阅读全文
posted @ 2020-11-10 16:03 路璐 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 1 package main 2 3 import ( 4 "fmt" 5 ) 6 7 func pivot(arr []int, begin int, end int) int { 8 end-- 9 temp := arr[begin] 10 // 为减小最坏情况发生的几率,可以在b 阅读全文
posted @ 2020-11-10 10:10 路璐 阅读(456) 评论(0) 推荐(0) 编辑