temp =‘ota_sign_tool_20200722.zip’ #字符串转字节串 temp1 = temp.encode(‘utf-8’) print(temp1) #字节串转十六进制 temp2 = temp1.hex() print(temp2) #十六进制转字节串 temp3 = bytes.fromhex(temp2) print(temp3) #字节串转字符串 temp4 = temp3.decode() print(temp4)