剑指offer python版 翻转单词顺序
def aa(string): if not string: return False a=string.split() return ' '.join(a[::-1]) print(aa('I am a engineer.'))
def aa(string): if not string: return False a=string.split() return ' '.join(a[::-1]) print(aa('I am a engineer.'))