SyntaxError: unexpected character after line continuation character
问题 I am testing a code with doctest and I want to comment in front of the tests like this: Tests: >>> part([('Eva', 'Sao Paulo', 21098, '04-12', 1182),\ #False, 1, 0 ('Ana', 'Toquio', 21098, '06-12', 1182),\ ('Ana', 'Sao Paulo', 21098, '04-12', 1096)]) [2, 1] The problem is that when I run the code in the shell it gives me a synthax error: File "/home/user/Desktop/file.py", line 44, in __main__.part Failed example: part([('Eva', 'Sao Paulo', 21098, '04-12', 1182),\ #False, 1, 0 Exception raised: