Python Error: _csv.Error sequence expected

Today, I encountered an error when writing a script in Python. The specific code is as follows:

csv_write.writerow( strings )

And my string is: base_ Name, Nd, Lev , which is similar to a tuple. It seems that when the script is running, it will report an error like this. I found a reference on the Internet and just modified it as follows:

1、

csv_write.writerow( [strings] )

2、

It is also possible that the part in front of you is wrongly written, leading to an error in the back. In fact, it should be used when there are multiple lines first

csv_write.writerow( strings )

So when this kind of error occurs, you can also check whether the previous code has errors, or whether the file used for extraction has errors

Read More: