时间:2024-10-13 11:08:35
1、新建一个将列表中的数字倒置.py,如图所示:
3、定义一个列表 a,代码:a = [1, 2, 3, 4, 5]
5、使用 print() 函数将倒置后的列表输出,如图所示: