python字符串操作

来源:互联网 发布:linux怎么编程 编辑:程序博客网 时间:2024/04/26 11:47

str="012345678"

1. 反转  str[::-1]

2. 转为int,long string.atoi(str,10)


原创粉丝点击