题解 | #单词倒排#
单词倒排
https://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
import re input = input() # 提取所有的字母 reg = r'[a-zA-z]+' words = re.findall(reg, input) print(' '.join(words[::-1]))#单词倒排#
单词倒排
https://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
import re input = input() # 提取所有的字母 reg = r'[a-zA-z]+' words = re.findall(reg, input) print(' '.join(words[::-1]))#单词倒排#
相关推荐