py入门题求助,全wa

P5705 【深基2.例7】数字反转

JOOOO @ 2020-10-03 14:43:29

str=input()
len=len(str)
for i in range(0,len):
    print(str[len-1-i],end="")

全wa了,py萌新求助,按照c++写的,在本机上跑得好像都没什么问题


by impuk @ 2020-10-03 14:46:43

link

code:

str=input()
len=len(str)
for i in range(0,len):
    if ord(str[len-1-i])!=13:
        print(str[len-1-i],end="")

by 血色黄昏 @ 2020-10-03 14:49:44

@一只爬行者 果然是/r的锅吗(


by impuk @ 2020-10-03 14:50:41

/r/n ,永远的神(

另外傻逼错误之把 13 记成空格(


by YouXam @ 2020-10-03 15:00:30

print(''.join(reversed(input().strip())))

by Vocanda @ 2020-10-03 15:04:26

@YouXam %%%%


by 玄音的望苏 @ 2020-10-25 19:37:21

s = input()
for i in range(len(s)):
    print(s[len(s)-1-i],end='')

大佬们 全wa了 为啥啊


|