学习笔记(02):Python 面试100讲(基于Python3.x)-如何反转字符串

立即学习:https://edu.csdn.net/course/play/26755/340115?utm_source=blogtoedu

反转:步长-1

s1='abcde'

print(s1[0::-1])

发布了26 篇原创文章 · 获赞 2 · 访问量 297

猜你喜欢

转载自blog.csdn.net/qq_35504363/article/details/104206615