📜  如何在python代码示例中比较字节字符串

📅  最后修改于: 2022-03-11 14:45:07.755000             🧑  作者: Mango

代码示例1
#make both of them str
var1 = b'hey'
var2 = b'hey'
print(if str(var1) == str(var2))
>> True