NP26 牛牛的反转列表
This commit is contained in:
parent
78f8cedd24
commit
d13aef71d8
14
NP/NP26.py
Normal file
14
NP/NP26.py
Normal 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()
|
Loading…
Reference in New Issue
Block a user