把一个老项目中的文件复制到Android Studio中,在获取颜色的代码上报错: 提示:Excepted resource of type color
同样的代码,在Android Studio中的另外一个java类中是正常的。
一定是两个类有哪个配置不一样。经过一番检查&#…
代码 self.image_files [line.split(\n)[0] for line in open(files_list[0])]报错 解决方案:添加代码.name self.image_files [line.split(\n)[0] for line in open(files_list[0].name)]