摘要:
package main import ( "fmt" "math" "reflect" "runtime" ) func apply(op func(int, int) int, a, b int) int { p := reflect.ValueOf(op).Pointer() opName : 阅读全文
摘要:
package main import ( "bufio" "fmt" "os" ) func printFile(filename string) { file, err := os.Open(filename) if err != nil { panic((err)) } scanner := 阅读全文
摘要:
package main import ( "fmt" "strconv" ) func converToBianry(n int) string { result := "" for ; n > 0; n /= 2 { lsb := n % 2 result = strconv.Itoa(lsb) 阅读全文