Test/Email/email_selenium_report.py", line 43, in <module>TypeError: can only concatenate list (not "str") to listdef extract_data_from_report3(filename):
Windows\system32>firstwebscrape.py File "C:\Users\31947\Documents\Python\firstwebscrape.py", line 34, in <module>TypeError: can only concatenatestr (not "ResultSet") t
当前正在接收此错误:"TypeError:只能将str (不是"list")连接到str“。我是否需要先将它们全部添加到一个dataframe中,然后再试一次?我以为我就是这么做的。worker(files) with open(dest_dir + filenames) as f:
TypeError: can only concatenat
:")print("Congrats! You are now " +new_age+ " years old!")这可能是最简单最简单的修复方法之一,但是我已经学习python大约1天了,我无法理解这个错误。我的代码在上面有说明。我试过3号线如果没有int(),但是它返回两个加在一起的文本,而不是数字输入。提前感谢!
编辑:哎哟,粗暴