capwords () capitalizes all words in a string. import string s = 'this is a test from java2s.com' print string.capwords(s).
確定! 回上一頁