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)
上一题
下一题