未知题型
1.已知lis=[23, ’Jordan’, ’Bulls’, 3, ‘Iverson’, ‘76 Players’, 24, ‘Kobe’, ‘Lakers’],则: lis[3:6]=________,lis[:3]=______, lis[:-1:3]=_________。
【参考答案】
1. Python中的列表切片操作允许我们获取列表的一部分。格式为`list[start:stop:step]`,其中`......
(↓↓↓ 点击下方‘点击查看答案’看完整答案、解析 ↓↓↓)
点击查看答案&解析
