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)
相關文章
相關標籤/搜索