python 倒着输入字符串

#倒着输入字符串
zf=str(input("请输入字符串"))
cd=len(zf)
for i in range(cd):
print(zf[cd-i-1],end="")

猜你喜欢

转载自www.cnblogs.com/w331842/p/12533265.html