Python: slicing

# python slicing 和函数range 差不多, 起始值,最后值,步长值 a='abcdefghijklmnopqrstuvwxyz' print(a[:],end=' \n') # abcdefghijklmnopqrstuvwxyz print(a[:5], end=' \n') #
posted @ 2024-07-03 08:53  ?Geovin Du Dream Park?  阅读(1)  评论(0编辑  收藏  举报