golang 常用数据类型转换
摘要:
str ↔ int num := 123 num2Str := strconv.Itoa(num) fmt.Printf("%T", num2Str) str := "12345" str2Int, _ := strconv.Atoi(str) fmt.Printf("%T", str2Int) s 阅读全文
posted @ 2022-01-18 17:09 进击的davis 阅读(82) 评论(0) 推荐(0) 编辑