May-15-2018, 04:01 PM
(May-14-2018, 10:34 PM)tjnichols Wrote:There is a caret character under the 1.
Error:c:\Users\toliver\AppData\Local\Programs\Python\Python36>python WOGCC_File_Downloads.py File "WOGCC_File_Downloads.py, line 52 filename = self.log_path / 'comp{}'.format(url[p 1:])
Well, that's invalid syntax. What are you trying to do, when you put
url[p 1:]
? Is the p
a typo, and you want all but the first item of the string? Or is the space the typo, and the variable name is p1
? Or is p
a number, and you're trying to modify it some way, such as p + 1
?Whatever your intention is, just
p 1
is invalid, and throws an error because it doesn't make sense.