NP31 团队分组

This commit is contained in:
轩辕龙儿 2022-10-26 15:57:42 +08:00
parent afe610bfe2
commit 210700b6dd

14
NP/NP31.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python3
# @author 轩辕龙儿
# @date 2022/10/26
# @file NP31.py
def solution():
group_list = ["Tom", "Allen", "Jane", "William", "Tony"]
print(group_list[0:2])
print(group_list[1:4])
print(group_list[3:5])
if __name__ == "__main__":
solution()