💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
>[success] # slice 切片 ~~~ a = slice(0,3) d = [1,2,3,4,] print(d[a]) 打印结果: [1, 2, 3] ~~~ >[danger] ##### start /stop/step ~~~ a = slice(0,3) print(a.start,a.stop,a.step) 打印结果: 0 3 None ~~~