反转字符串

def fan():
shu = str(input("请输入一个字符串"))
#print(shu[::-1])
print(''.join(reversed(shu)))
#fan()
原文地址:https://www.cnblogs.com/biaobiaohu/p/14245201.html