Python 中的[:-1] 和[::-1]. 1、案例解释 ... 从后往前数的话,最后一个位置为-1 d=a[:-1] #从位置0到位置-1之前的数print(d) #pytho e=a[:-2] #从位置0到位置-2之前的 ...
確定! 回上一頁