make a instance of numbers and string. atoi() converts the string argument str to an integer.So how to converts bytes argument to string in python? such as
import sys
string = sys.argv[1]
print(string)
python2 test.py "\000\000\000"
with the result of "\000\000\000" which makes no sense, but I want to converts it to '\x00\x00\x00'