主页
Python
如何反转 Python 中的字符串
demo_howto_reverse_string2
运行 ❯
×
更改方向
保存代码
更改主题
def my_function(x): return x[::-1] mytxt = my_function("I wonder how this text looks like backwards") print(mytxt)
sdrawkcab ekil skool txet siht woh rednow I