Python Error: ValueError: invalid literal for int() with base 16: ‘ ‘

This error is reported because the length of a string is 47, and the’d null ‘string will be obtained at the end of slicing, while the binary function of int() conversion cannot process null characters, resulting in an error

Solution: let a variable store the slice result first. At this time,’d ‘is not passed to int()

Read More: