📜  反转字符串中的单词python代码示例

📅  最后修改于: 2022-03-11 14:45:19.423000             🧑  作者: Mango

代码示例3
string = 'hello people of india'
words = string.split()   #converts string into list
print(words[::-1])