题解 | #字符串反转#
字符串反转
http://www.nowcoder.com/practice/e45e078701ab4e4cb49393ae30f1bb04
def fe():
while True:
ss = input()
if len(ss)<=1000 and ss.islower():
lis = []
for i in ss:
lis.append(i)
lis1 = lis[::-1]
re = ''.join(lis1)
print(re)
break
else:
continue
fe()
while True:
ss = input()
if len(ss)<=1000 and ss.islower():
lis = []
for i in ss:
lis.append(i)
lis1 = lis[::-1]
re = ''.join(lis1)
print(re)
break
else:
continue
fe()