a='python' b=a[::-1] print(b) #nohtyp c=a[::-2] print(c) #nhy #从后往前数的话, ... 为-1. j缺省时,默认为-len(a)-1 # 所以a[::-1]相当于a[-1:-len(a)-1:-1],也 ...
確定! 回上一頁