让最终形成:
2:4
3:5
4:6
5:7
6:8
~~~
func main() {
new_start := 2
new_end := 6
old_start := 4
old_end := 8
for i := new_start; i <= new_end; i++ {
for j := old_start; j <= old_end; j++ {
fmt.Println(i, ":", j)
}
}
/*
让最终形成:
2:4
3:5
4:6
5:7
6:8
*/
}
~~~
更多评论
![7EC2BF62-9F17-4957-8953-E7FB202471AF.png](https://static.golangjob.cn/231214/8f8af649fc8dc4234a55232a81fc6728.png)
#2