當嘗試交換包含非ASCII 字符的字符串的大小寫時,這可能會導致意外結果。 def swap_case(s): return s.swapcase() # Driver program s = "This is a Sample String" ...
確定! 回上一頁