📜  在 python 列表中切片 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:54.051000             🧑  作者: Mango

代码示例1
list_example = ["python","ruby","java","javascript","c#","css","html"]
print(list_example[3])#javascript
print(list_example[0])#python
print(list_example[6])#html
print(list_example[0:3]) #will print the programming language under python and javascript
print(list_example[:3]) all languages under python to javascript