反转字符串,python一行解决

class Solution:
    def solve(self , str ):
        # write code here
        return ''.join(list(str)[::-1])