示例:
a='python' b=a[::-1] print(b) # 输出为:nohtyp c=a[::-2] # 输出为:nhy d=a[:-2] # 输出为:pyth e=a[:-1] # 输出为:pytho
上一篇 Python open读取较大文件的方法
下一篇 Pandas系列(五):可视化绘图
版权所有 (c)2021-2022 MSHXW.COM
ICP备案号:晋ICP备2021003244-6号