full_hope
full_hope
题解
题解 | #单词倒排#
全部文章
题解
归档
标签
去牛客网
登录
/
注册
题解 | #单词倒排#
228 浏览
0 回复
2022-01-26
full_hope
+关注
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
import re a = input() s = re.sub(r'[^a-zA-Z]',' ',a) print(" ".join(s.split()[::-1]))
Python3
举报
收藏
赞
评论加载中...