當前位置:成語大全網 - 新華字典 - reverse在python裏是什麽意思

reverse在python裏是什麽意思

reverse是python壹個列表的內置函數,是列表獨有的,用於列表中數據的反轉,顛倒。也就是說,在字典,字符串或者元組中,是沒有這個內置方法的,其作用主要是用於反向列表中元素。其實,這壹步操作的返回值是壹個None,其作用的結果,需要通過打印被作用的列表才可以查看出具體的效果。

reverse雙語例句:

1、She did the reverse of what I told her.

我告訴她怎麽做,但她卻做得與我告訴她的相反。

2、Once you consciously notice this anomaly it is too late to reverse it.

壹旦妳有意識地註意到這種異常,要反轉它已太遲了。

3、In the reverse direction the thyristor cannot be turned on.

如果是相反方向,半導體閘流管無法開啟。