【python】——python3 与 python2 的那些不兼容

python2 python3
string.uppercase string.ascii_uppercase
string.lowercase string.ascii_lowercase
xrange   range
from cStringIO import StringIO from io import StringIO
当须要写文件的时候 StringIO BytesIO