描述
slice() 函数实现切片对象,主要云计用在切片操作函数里的参数传递。
语法
以下是 slice算开 方法的语法:
class slice(stop)
cl发:ass slice(start, stop[, stePyp])
参数
start -- 起始位置
stop --th 结束位置
step -- 间距
返回值
返回一个切片对象。
实on例
以下实例展示了 slice 的使用方法:
电话:020-123456789
传真:020-123456789
Copyright © 2026 Powered by 兢兢战战网 https://zmdinfo.ha.cn/