read
will return bytes. At least for Python 3, if you want to return a string, you have to decode using the right encoding:
import boto3
s3 = boto3.resource('s3')
obj = s3.Object(bucket, key)
obj.get()['Body'].read().decode('utf-8')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…