#使用lower方法把字符串轉換為小寫 a='Ayushi'.lower() print(a)#ayushi #使用upper方法把字符串轉換為大寫 b='Ayushi'.upper() print(b)#AYUSHI # 使用isupper()和islower()方法檢查字符串是否全為大寫或小寫 print('Ayushi'.isupper())#False print('AYUSHI'.isupper())#True print('ayushi'.islower())#True #@和$這樣的字符既滿足大寫也滿足小寫 print('@yu$hi'.islower())#True print('@YU$HI'.isupper())#True print('The Corpse Bride'.istitle())#判斷一個字符串是否為標題格式