PTA BASIC 1009.说反话
原题目链接 题解与感想 本来应该是用C写才有点数据结构的味道,不过正好这段时间复(yu)习python,遂用python写的 源码 sentence = input ( ) new_sentence = '' for word in sentence . split ( ) [ : : - 1 ] : new_sentence += word new_sentence += ' ' print ( new_sentence . strip ( ) ) 来源: CSDN 作者: 渊澄 链接: https://blog.csdn.net/yuancheng224/article/details/104643457