首 页
网络学院
视频教程
资源下载
HOT
实例教程
图文教程
专题中心
学习社区
繁體中文
当前位置:
首页
>
图文教程
>
脚本技术
>
Python
> Python 字符串中的字符倒转
Python
python 正则式使用心得
python 正则式 概述及常用字符
用python分割TXT文件成4K的TXT文件
python getopt 参数处理小示例
python 运算符 供重载参考
python 查找文件夹下所有文件 实现代码
打印出python 当前全局变量和入口参数的所有属性
python 解析html之BeautifulSoup
python self,cls,decorator的理解
python 自动提交和抓取网页
python 域名分析工具实现代码
Python 文件重命名工具代码
python 提取文件的小程序
Python 网络编程说明
python 简易计算器程序,代码就几行
python encode和decode的妙用
Python开发编码规范
学习python (1)
学习python (2)
简明 Python 基础学习教程
No.
«
‹
3
4
5
6
›
»
技术文章搜索
关键字
Python 字符串中的字符倒转
出处:
互联网
整理:
软晨网(RuanChen.com)
发布:
2009-09-11
浏览: 196 ::
收藏到网摘: n/a
Python 连接字符串(join %)
Python translator使用实例
实现字符倒转的python函数 方法一,使用[::-1]:
s = 'python'
print s[::-1]
方法二,使用reverse()方法:
l = list(s)
l.reverse()
print ''.join(l)
输出结果:
nohtyp
nohtyp
Python 连接字符串(join %)
Python translator使用实例
评论 (0)
All
登陆
还没注册?