Selecting list item

前端 未结 0 774
我寻月下人不归
我寻月下人不归 2020-12-08 19:05

need help on this

Example to select first 5 items from the below list
nums = [10, 20, 30, 40, 50, 60, 70, 80, 90]
nums[:5]
output = [10, 20, 30, 40, 50]


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