利用索引來擷取某字元或某字串. str1 = 'Hello World!' print(str1[3]) print(str1[6:]) # 從索引6 印到最後一個字 print(str1[-1]) # 印出最後一個字 ...
確定! 回上一頁