题目:反转字符串中的单词
class Solution(object):
def reverseWords(self,s):
l=s.split()
k=[]
for i in l:
k.append(i[::-1])
t=''.join(k)
return t
题目:反转字符串中的单词
class Solution(object):
def reverseWords(self,s):
l=s.split()
k=[]
for i in l:
k.append(i[::-1])
t=''.join(k)
return t