string=string.replace("T","A"). print(string). 作法2:將字串先轉換為清單list後,利用for迴圈逐個讀取清單中的元素做修改. 優點:除了替換字串中的 ...
確定! 回上一頁