Python write bytes to file using redirect of print
Python write bytes to file using redirect of print Question: using perl, $ perl -e ‘print "xca"’ > out now $ xxd out we have 00000000: ca But with Python, I tried $ python3 -c ‘print("xca", end="")’ > out $ xxd out what I got is 00000000: c38a I’m not sure what is going on. …