python: file open modes: r, r+, w, w+, a, a+, and that tedious 'b'
From stackoverflow:
首先是最基本的6种模式:
可以看到,在 r, w, a 后面加个 + 就代表可读可写了。
在这六种模式中又可以加上一个 b 代表binary mode:
[2]: http://stackoverflow.com/questions/9644110/difference-between-parsing-a-text-file-in-r-and-rb-mode
Not so comfortable with that 'b' though
:)