單項(xiàng)選擇題

在Python中,如何將一個(gè)字符串反轉(zhuǎn)?()

A.str[::-1]
B.str.reverse()
C.reverse(str)
D.reversed(str)

微信掃碼免費(fèi)搜題