#string 2 int
int, err := strconv.Atoi(string)
#string 2 int64
int64, err := strconv.ParseInt(string, 10, 64)
#int 2 string
string := strconv.Itoa(int)
#int64 2 string
string := strconv.FormatInt(int64, 10)
原文地址:https://www.cnblogs.com/cinlap/p/10734858.html
时间: 2024-10-09 07:58:54