list1=(123,234)
list1.reverse()Traceback (most recent call last): File “<pyshell#55>”, line 1, in list1.reverse()AttributeError: ‘tuple’ object has no attribute ‘reverse’
朋友让我问的,他要把(123,234)里的数字位置调换下
最新推荐文章于 2021-03-03 08:00:00 发布
list1=(123,234)
list1.reverse()Traceback (most recent call last): File “<pyshell#55>”, line 1, in list1.reverse()AttributeError: ‘tuple’ object has no attribute ‘reverse’