How is `:` interpreted?

后端 未结 0 1926
一整个雨季
一整个雨季 2020-12-17 03:58

I know "how" to use the : operator to extract data from a list in python.

Eg:

l = [1,2,3]
print(l[0:1])
print(l[-1:])

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