Assumming a is a string. The Slice notation in python has the syntax - list[<start>:<stop>:<step>]. So, when you do a[::-1] , it starts from ...
確定! 回上一頁