摘要:
package main import ( "fmt" "math" "reflect" "runtime" ) func apply(op func(int, int) int, a, b int) int { p := reflect.ValueOf(op).Pointer() opName : 阅读全文
posted @ 2020-09-04 10:54
清明-心若淡定
阅读(235)
评论(0)
推荐(0)
摘要:
package main import ( "bufio" "fmt" "os" ) func printFile(filename string) { file, err := os.Open(filename) if err != nil { panic((err)) } scanner := 阅读全文
posted @ 2020-09-04 10:25
清明-心若淡定
阅读(749)
评论(0)
推荐(0)
摘要:
package main import ( "fmt" "strconv" ) func converToBianry(n int) string { result := "" for ; n > 0; n /= 2 { lsb := n % 2 result = strconv.Itoa(lsb) 阅读全文
posted @ 2020-09-04 10:14
清明-心若淡定
阅读(2223)
评论(0)
推荐(0)
浙公网安备 33010602011771号