python 3.5: a bytes-like object is required,not ‘str’ 报错

python 3.5: a bytes-like object is required,not 'str' 报错