Name=data. Iloc [b [0], 0] # extracted time
Path="D:/CNN/yi/+ STR (name) + 'CSV'
Writer.=the CSV writer (path)
Data5. To_csv (writer, the header=False, index=False,) # write
Writer. The save ()
The above is my code, the name of the format is STR, an error is a writer of the line, an error content is argument 1 must have a "write" method