返回列表 發帖
  1. str1=input()
  2. ans=''

  3. for i in range(len(str1)):
  4.     if str1[i].isupper():
  5.         ans+= str1[i].lower()
  6.     else:
  7.         ans+= str1[i].upper()
  8. print(ans)
複製代碼
回復 1# 鄭繼威

TOP

返回列表