def order_by(str):
return str[::-1]
print(order_by('123456'))
输出:654321
用 Python 写一个函数,输入一个字符串,返回倒序结果
猜你喜欢
转载自blog.csdn.net/weixin_44267278/article/details/87888950
今日推荐
周排行