I'm learning CS61a at the beginning. When I open a text of Shakespeare's work, I use text.read().split(), after that all the elements are returned with the letter "b" at the beginning.
So why there is a "b" at the beginning? What's the meaning of it? Is there a way to fix this? Thanks in advance!
Here's the code:
>>> shakes=urlopen('http://composingprograms.com/shakespeare.txt')
>>> text=shakes.read().split()
>>> text[:25]
[b'A', b"MIDSUMMER-NIGHT'S", b'DREAM', b'Now', b',', b'fair', b'Hippolyta', b',', b'our', b'nuptial', b'hour', b'Draws', b'on', b'apace', b':', b'four', b'happy', b'days', b'bring', b'in', b'Another', b'moon', b';', b'but', b'O']