Posted in Python onMarch 06, 2015
几行代码的小工具,用于进行如下转换
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写的英文字符大小写转换代码示例
- Author -
junjie声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@