f.write(strtime + '\t' + i + '\t' + titleYied + '\t' + urlyied + '\n') # ‘\n’ 表示换行
TypeError: cannot concatenate 'str' and 'int' objects
解决:
python拼接字符串 中有的是整数时需要用str()进行转换才能进行拼接
f.write(strtime + '\t' + i + '\t' + titleYied + '\t' + urlyied + '\n') # ‘\n’ 表示换行
TypeError: cannot concatenate 'str' and 'int' objects
解决:
python拼接字符串 中有的是整数时需要用str()进行转换才能进行拼接