显示AttributeError:'bool' object has not attribute 'find' on line 12
我现在在学.find()用法,想要打开一个文件并提取里面的一段数字,详细见图,谢谢!
显示AttributeError:'bool' object has not attribute 'find' on line 12
我现在在学.find()用法,想要打开一个文件并提取里面的一段数字,详细见图,谢谢!
第七行改为:for line in fh.readlines():