习题11:反转句子 2017-02-22 本文已影响0人 今年说话算话 比如有个句子:“i have a boy”,反转后得到“boy a have i” def solution(s): return ' '.join(s.split()[::-1])