reverse() 方法逆转列表对象位置。
	
语法
		以下是 reverse()方法的语法 -
	
list.reverse()
参数
- 
			NA 
		
			返回值
		
	
	
		此方法不返回任何值,但反转列表中给定的对象。
	
	示例
		下面的示例显示reverse()方法的使用。
	
#!/usr/bin/python3
list1 = ['physics', 'Biology', 'chemistry', 'maths']
list1.reverse()
print ("list now : ", list1)
	
		当我们运行上面的程序,会产生以下结果 -
	
list now : ['maths', 'chemistry', 'Biology', 'physics']
						上一篇:
								Python3字符串
												下一篇:
								Python3列表
												
						
						
					
					
					