For example, I have a string like this(return value of subprocess.check_output
):
>>> b'a string'
b'a string'
Whatever I did to it, it is always printed with the annoying b'
before the string:
>>> print(b'a string')
b'a string'
>>> print(str(b'a string'))
b'a string'
Does anyone have any ideas about how to use it as a normal string or convert it into a normal string?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…