python string和bytes string和int bytes和list互换

1. string and bytes byte_type_data.decode() #bytes转str str_type_data.encode() #str转bytes #注必要的时候能够在encode或者decode里面加'utf-8' 2. string and int str(int_type_data) # int转化为十进制string hex(int_type_data)
相关文章
相关标签/搜索