html_body += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".\format(p[0],p[1],p[2],p[3])
^
SyntaxError: unexpected character after line continuation character
It looks normal. how should i fix it?
asked Sep 28, 2016 at 3:54
Jonathan Cheng
4792 gold badges11 silver badges27 bronze badges
-
Put a newline after the `\`?mgilson– mgilson2016年09月28日 03:55:27 +00:00Commented Sep 28, 2016 at 3:55
2 Answers 2
html_body += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".\form
^
Right there is your problem. The backslash is the line-continuation character that the error mentions. Take it out.
answered Sep 28, 2016 at 3:56
John Griffin
3772 silver badges8 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
html_body += "<tr><td>{}</td><td>{}</td><td>{}</td><td>{}</td>".\format(p[0],p[1],p[2],p[3])
this backslash is not needed ----------------------------------^
answered Sep 28, 2016 at 3:57
Ayush
42.5k52 gold badges170 silver badges244 bronze badges
Comments
lang-py