题解 | #团队分组#

团队分组

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

import sys

group_list=['Tom', 'Allen', 'Jane', 'William', 'Tony']
print(group_list[0:2])
start_index = len(group_list) // 2 - 1
end_index = start_index + 2
print(group_list[start_index:end_index+1])
print(group_list[-2:])

全部评论

相关推荐

本2硕9,秋招不想努力海投了
小何和:行情再不好也不可能拒绝你,不可能只要双9的
点赞 评论 收藏
分享
06-10 23:36
已编辑
首都经济贸易大学 C++
点赞 评论 收藏
分享
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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