801N 大佬有话说 :
求方便的大佬给我运行一下pyTHON
code=’114&73&55&110&69&37&53&113&'[:-1] # "baseinfoSet_TELECOMPASSWORD":"114&73&55&110&69&37&53&113&"
list=map(int,code.split(‘&’))
result=[]
for i in list:
if i > 57:
i-=4
result.append(chr(i))
print (”.join(result)) # output password:nE7jA%5m
801N 大佬有话说 :
我自己运行Python 2.7.5 (default, Aug7 2019, 00:51:29)
on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> code=’114&73&55&110&69&37&53&113&'[:-1] # "baseinfoSet_TELECOMPASSWORD":"114&73&55&110&69&37&53&113&"
>>> list=map(int,code.split(‘&’))
>>> result=[]
>>> for i in list:
… if i > 57:
… i-=4
… result.append(chr(i))
… print (”.join(result)) # output password:nE7jA%5m
File "<stdin>", line 5
print (”.join(result)) # output password:nE7jA%5m
^
SyntaxError: invalid syntax
>>>
ibmall 大佬有话说 :
Python 2.7 好像是
print ”.join(result))
没试过
snx 大佬有话说 :
python37 正常运行