Python写的英文字符大小写转换代码示例,
Python写的英文字符大小写转换代码示例,
几行代码的小工具,用于进行如下转换
TRANSACTIONS ON CLOUD COMPUTING
=》
Transactions On Cloud Computing
复制代码 代码如下:
orig = 'TRANSACTIONS ON CLOUD COMPUTING'
splited = orig.split(' ')
handled = ''
for word in splited:
word = word[0] + word[1:].lower()
handled += (' ' + word)
handled = handled[1:]
print handled
#handled is 'Transactions On Cloud Computing'
相关内容
- python获取android设备的GPS信息脚本分享,androidgps
- Python复制目录结构脚本代码分享,python脚本
- Python最长公共子串算法实例,python最长算法
- Python自动连接ssh的方法,python连接ssh
- Python中运行并行任务技巧,python并行任务技巧
- Python map和reduce函数用法示例,pythonreduce
- python中的__slots__使用示例,python__slots_
- Python构造函数及解构函数介绍,python构造函数解构
- python分析apache访问日志脚本分享,pythonapache
- python分析nignx访问日志脚本分享,pythonnignx
评论关闭