package main
import (
"fmt"
)
func main() {
nFontPrint("HelloWorld", 5)
}
func nFontPrint(str string, n int) {
col := len(str)/n + n -
输入一个字符串,一个n(代表n行),打印N字形
最新推荐文章于 2023-05-17 09:11:56 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)
package main
import (
"fmt"
)
func main() {
nFontPrint("HelloWorld", 5)
}
func nFontPrint(str string, n int) {
col := len(str)/n + n -