解决 python 读取文件乱码问题(UnicodeDecodeError) 确定你的文件的编码,下面的代码将以'utf-8'为例,否则会忽略编码错误导致输出乱码 解决方案一 with open(r'/Users/mac/Desktop/face/2.1.docx', 'rb', ) as fr: data = fr.read() line_list = data.decode('utf8').split('\n') data_l = [] for line in line_list: line
解决 Laravel/Lumen 出现 "Please provide a valid cache path" 问题 解决 Laravel/Lumen 出现 "Please provide a valid cache path" 问题 新建项目报错: //错误提示: InvalidArgumentException in Compiler.php line 36: Please provide a valid cache path. 错误提示的出错: // vend