运行如下代码:
words = "123abc"
slice1=words[-1::-1]
print(slice1)
结果为:“cba321”。(?)
微信小程序
微信扫一扫体验
微信公众账号
微信扫一扫加关注
发表评论 取消回复