题解 | #字符逆序#
字符逆序
https://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b
def run(): sts = input("") if 1 <= len(sts) <= 10000: # print(len(sts)) a = len(sts) - 1 while a > -1: print(sts[a], end="") a -= 1 run()
字符逆序
https://www.nowcoder.com/practice/cc57022cb4194697ac30bcb566aeb47b
def run(): sts = input("") if 1 <= len(sts) <= 10000: # print(len(sts)) a = len(sts) - 1 while a > -1: print(sts[a], end="") a -= 1 run()
相关推荐