Convert hex to ASCII by mitchs

a=open(0)
while 1:x=int(a.read(3),16);print(end=(('\\x%02x','%c')[31<x<127]%x,'\\n\n')[x==10])

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page