str()方法
来源:互联网 发布:海湾调试软件 编辑:程序博客网 时间:2024/05/16 09:08
1. capitalize()
返回首字母大写格式的字符串
2. center(width【,fillchar 】 )
如果len(string)>width,则只会显示string。
s1='hello'
print s1.find('l') #返回索引
print s1.replace('k','m'),s1 #如果要替换的字符串不存在,则不进行其他操作
- str()方法
- str判断字符串方法
- python-str方法使用
- python str 方法
- Python str.split方法
- Python str对象方法
- python-str(常用方法)
- Python str内置方法
- str方法总结
- unicode .decode /str.encode方法
- python str的一些方法
- python unicode转str方法
- python unicode转str方法
- python的str类方法
- Python3.6 str内置方法
- python str转bool方法
- python str常用方法简介
- str
- Javascript诞生记
- centos 4.8 yum源
- 在开发用到的实例工具
- openvas 部署检查
- 学习 JFORUM笔记-----六MostUsersEverOnline
- str()方法
- 使用Java中的Timer和TimerTask
- 使用KGDB调试内核 on QEMU
- jenkins教程2
- 我的架构经验小结(一)-- 常用的架构模型
- Android build system
- 如何配置SQL server,让其允许远程外部连接
- 使用surfaceview进行mediaplayer文件切换播放2
- CSS行内(inline)元素同行放置时,垂直对齐差异