新增了题库2、3类型1

This commit is contained in:
2024-11-07 20:58:28 +08:00
parent 58d8ca0ce6
commit 8cafd567d0
4 changed files with 84 additions and 54 deletions
+11
View File
@@ -0,0 +1,11 @@
package utils
// IsInSlice 判断目标值是否存在于切片中
func IsInSlice(value int64, slice []int64) bool {
for _, v := range slice {
if v == value {
return true
}
}
return false
}