当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
1 Star 0 Fork 14

Share90 / pic2ascii
暂停

forked from wzshiming / pic2ascii
暂停
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
reverse.go 203 Bytes
一键复制 编辑 原始数据 按行查看 历史
wzshiming 提交于 2018-01-25 16:08 . add reverse
package pic2ascii
func ReverseString(s string) string {
str := []rune(s)
l := len(str) / 2
for i := 0; i < l; i++ {
j := len(str) - i - 1
str[i], str[j] = str[j], str[i]
}
return string(str)
}
Go
1
https://gitee.com/zcyso/pic2ascii.git
git@gitee.com:zcyso/pic2ascii.git
zcyso
pic2ascii
pic2ascii
master

搜索帮助