Python 简单实现字符倒序
2017-12-13 14:37
211 查看
n=123
n=str(n)
print n
n1=n[::-1]
print n1
n2="jahfioanfg"
print n2
n3=n2[::-1]
print n3
n=str(n)
print n
n1=n[::-1]
print n1
n2="jahfioanfg"
print n2
n3=n2[::-1]
print n3
相关文章推荐
- Python 实现不换行打印字符的3种简单方法
- python split同时用多种字符分割字符串并去除空串 简单两行代码实现
- 【leetcode】(Python)Reverse Vowels of a String实现字符串内元字符倒序
- Python(27)使用python的http,cgi模块实现一个简单的web服务
- Python 实现一个简单的http服务器
- python实现简单socket程序在两台电脑之间传输消息的方法
- Python实现的简单万年历例子分享
- python实现简单消息总线
- Python实现简单的HTTP服务器
- python3实现TCP协议的简单服务器和客户端
- 一个简单的解释器——python实现
- Python实现同时兼容老版和新版Socket协议的一个简单WebSocket服务器
- Python 简单爬虫实现(爬取百度百科信息)
- 神经网络算法推导,附python实现一个简单神经网络
- 构建垂直搜索引擎 本课程带领大家实现一个简单的垂直搜索引擎网站,使用nodejs、python、elasticsearch实现的。
- 用Python实现简单的udp打洞(P2P)
- python实现简单点对点(p2p)聊天
- Python中实现远程调用(RPC、RMI)简单例子
- 八大排序算法的python实现(八)简单选择排序
- Python实现一个简单的验证码程序