str=input('请输入字符串:')
for i in range(len(str)-1,-1,-1):
print(str[i],end=' ')
网上摘抄
str=input('请输入字符串:')
for i in range(len(str)-1,-1,-1):
print(str[i],end=' ')
网上摘抄
上一篇:植物大战僵尸-石头怪
下一篇:字符串逆序输出-第二周第三题
python字符串的基础知识、字符串的两种格式化方法,python3中新增的bytes、bytesarray类型。
package com.liaojian
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M