标签:
几行代码的小工具,用于进行如下转换
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‘
标签:
原文地址:http://www.cnblogs.com/instant7/p/4295530.html