A summary of the functions used to convert the case sensitivity of strings in python and determine the case sensitivity of strings:
I. case-sensitive conversion of pyhton strings: 1. case-sensitive conversion of all characters in a string (only valid for letters). There are two methods: print 'just to test it '. upper () # All letters are converted into uppercase letters and written as just to test it print 'just to test it '. lower () # convert all letters to lowercase just TO test it 2. Convert the characters in the string (only valid for letters) into uppercase and lowercase: print 'just to TEST it '. capitalize () # converts the initial character of a string to uppercase, and the rest TO lowercase Just to test it print 'just to test it '. title () # The first letter of all words in the string is converted To uppercase, and the rest are converted TO lowercase Just To Test It. 2. The function used TO determine the case of the string is print 'just To TEST it '. isupper () True print 'just to test it '. islower () False print 'just to test it '. istitle () False