5 print(str[0]) 6 print(str[3:9]) 7 print(str[3:]) #輸出第 1 個字元 M #輸出 ... 在下面的 PythonStrMore.py 範例程式中,可以看到平時專案中針對字串的常見用法。
確定! 回上一頁