NP26 牛牛的反转列表

This commit is contained in:
轩辕龙儿 2022-10-26 15:23:50 +08:00
parent 78f8cedd24
commit d13aef71d8

14
NP/NP26.py Normal file
View File

@ -0,0 +1,14 @@
#!/usr/bin/env python3
# @author 轩辕龙儿
# @date 2022/10/26
# @file NP26.py
def solution():
num = [3, 5, 9, 0, 1, 9, 0, 3]
# print(num)
num.reverse()
print(num)
if __name__ == "__main__":
solution()