题解 | #团队分组#

团队分组

http://www.nowcoder.com/practice/113a0507b1144fa9a602c2a3cd847205

NP21 团队分组

思路:

切片打印即可;

代码如下:

group_list = ['Tom', 'Allen', 'Jane', 'William', 'Tony']
print(group_list[0:2])
print(group_list[1:4])
print(group_list[3:])
全部评论

相关推荐

面了100年面试不知...:被割穿了才想起来捞人了
投递哔哩哔哩等公司6个岗位
点赞 评论 收藏
分享
评论
27
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务