测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A43725. 要求:(1)用户输入一句英文(2)将其中的单词以反序输出 例如:hello c sharp — sharp c hello

填空题 中等

题目描述

要求:

(1)用户输入一句英文

(2)将其中的单词以反序输出 例如:hello c sharp — sharp c hello

参考答案

word = input("请输入一句话") word = word.split() word.reverse() print(word)
上一题 下一题