func Test(t *testing.T) {
A := “A”
t.Log([]rune(“A”))
x := []rune(A)
for index := range x {
x[index] = x[index] + 1
}
t.Log(x)
t.Log(string(x))
}
golang 将A字母变为B字母的操作
最新推荐文章于 2024-11-26 15:23:05 发布
func Test(t *testing.T) {
A := “A”
t.Log([]rune(“A”))
x := []rune(A)
for index := range x {
x[index] = x[index] + 1
}
t.Log(x)
t.Log(string(x))
}