题解 | #单词倒排#
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
import re s = input() f = re.sub('[^\w]',' ',s) f = f.split() print(*f[::-1])
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
import re s = input() f = re.sub('[^\w]',' ',s) f = f.split() print(*f[::-1])
相关推荐