buffer_file_content=u"流文件内容" file_size = len(buffer_file_content)/1000 #kb 转载于:https://www.cnblogs.com/yanxiatingyu/p/10195806.html