How to properly represent array 'slice' notation

后端 未结 0 1718
面向向阳花
面向向阳花 2020-12-17 08:37

What would be the proper way to define the following slice notation for a list:

list[a:b]
list[a]
list[a:]
list[:b]

For example,

相关标签:
回答
  • 消灭零回复
提交回复
热议问题