Merge pull request #227 from NeoLuk/master

"Hallo" --> "Hello"
This commit is contained in:
XiongNeng
2018-04-10 23:04:42 +08:00
committed by GitHub

View File

@@ -34,9 +34,9 @@
>>> buf = read_into_buffer('sample.bin')
>>> buf
bytearray(b'Hello World')
>>> buf[0:5] = b'Hallo'
>>> buf[0:5] = b'Hello'
>>> buf
bytearray(b'Hallo World')
bytearray(b'Hello World')
>>> with open('newsample.bin', 'wb') as f:
... f.write(buf)
...