def get_bytes_from_file(filename): return open(filename, "rb").read()#该片段来自于http://www.codesnippet.cn/detail/260920136158.html
来源: http://www.codesnippet.cn/detail/260920136158.html