小编Gun*_*shi的帖子

如何在python中反转字符串

如何在python中反转字符串?我的输入字符串是"嘿枪"现在我想显示"Gun Hey"作为输出.我已经尝试使用像[:: - 1]这样的切片运算符,但它不会显示正确的输出如何在python中工作?

python

-6
推荐指数
1
解决办法
398
查看次数

标签 统计

python ×1