题解 | #字符个数统计#
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
s = input()
res = ""
for i in s:
if i.isalpha():
res +=i
else:
res += i.replace(i, ' ')
print(' '.join(res.split()[::-1]))
单词倒排
http://www.nowcoder.com/practice/81544a4989df4109b33c2d65037c5836
s = input()
res = ""
for i in s:
if i.isalpha():
res +=i
else:
res += i.replace(i, ' ')
print(' '.join(res.split()[::-1]))
相关推荐