Retrieve length of slice from slice object in Python

后端 未结 5 1244
灰色年华
灰色年华 2021-01-04 03:05

The title explains itself, how to get 2 out of the object

slice(0,2)

The documentation is somewhat confusing, or it is the wrong one

<
5条回答
提交回复
热议问题