int

power := func(i, j int) int {
o := i
for s := 0; s < j; s++ {
fmt.Println("s,o",s,o)
o = o * i
}
return o
}
power(256,3)==16777216

 

posted @ 2021-10-27 16:27  papering  阅读(364)  评论(0编辑  收藏  举报