def get_bytes_from_file(filename) File.read(filename)end#该片段来自于http://www.codesnippet.cn/detail/260920136159.html
来源: http://www.codesnippet.cn/detail/260920136159.html