Compile Error
Traceback (most recent call last): File "<string>", line 1, in <module> File "/usr/lib/python2.7/py_compile.py", line 117, in compile raise py_exc py_compile.PyCompileError: File "/in/foo.py", line 9 print(j,end = '') ^ SyntaxError: invalid syntax
代码
s = input()
lst = list(s)
for i in range(len(lst)):
if ord(lst[i]) - ord('a') < 23:
lst[i] = chr(ord(lst[i])+4)
else:
i = chr(ord(lst[i])-22)
for j in lst:
print(j,end = '')