📜  python string reverse - Python 代码示例

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

代码示例6
word = "hello world"
r_word = "".join(reversed(word))
print(r_word)