1 str = '0123456789′ 2 print str[0:3] #擷取第一位到第三位的字元3 print str[:] #擷取字串的全部字元4 print str[6:] #擷取第七個字元到結尾5 ...
確定! 回上一頁