用Python 设计一个程序,实现单词的倒序输出,注意标点符号位置不变。 输入:hello worl

用Python 设计一个程序,实现单词的倒序输出,注意标点符号位置不变。 输入:hello world ! 输出:world hello !

需求“标点符号位置不变”不够明确。或者只接受输入hello world ! 吗?还是接受别的输入?比如下面的输入对应的输出是这样吗?

输入:Hi, Bob. What's up? 

输出:up, s. What'Bob Hi?