string = "python" print(string[3]) # 輸出為h. 這裡的string[3] 就是取字串中由0 開始算再3 個字元,也 ... string = "python" print(string[0:5:2]) # 輸出為pto.
確定! 回上一頁