str = input() for i in str: if not i.encode('utf-8').isalpha(): #中文排除 str = str.replace(i,' ') print(' '.join(str.split()[::-1]))
2

相关推荐

牛客网
牛客网在线编程
牛客网题解
牛客企业服务