梦境工程师-335 2024-05-24 05:58:18 回复 // 单个 byte 转 string byteValue := byte('a') stringValue := string(byteValue) // "a" // byte slice 转 string byteSlice := []byte{0x68, 0x65, 0x6c, 0x6c, 0x6f} stringValue = string(byteSlice) // "hello"
每天编码的小黑子
2024-05-24 05:54:47