题解 | #团队分组#

团队分组

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

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

全部评论

相关推荐

点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

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