字符串翻转输出:
a="I am tom" b=a.split(" ") print(b) b.reverse() print(b)
['I', 'am', 'tom']['tom', 'am', 'I']