這個函數不會改變原始的字串,而是返回一個新的轉換後的字串。 pythonCopy code# 使用upper() 函數將字串轉換為大寫 string = "Hello, World!"
確定! 回上一頁