# str = list(raw_input()) N = len(str) ''.isspace() for i in range(N-1): if str[i].isalpha(): str[i] = str[i].upper() break for i in range(1,N): if str[i].isalpha() and str[i-1].isspace(): str[i] = str[i].upper() print ''.join(str)
posted on 2015-09-14 12:03 hanahimi 阅读(329) 评论(0) 编辑 收藏 举报