I have a multiline string, something like '''...\nf.write('\n')\n...'''
when pass to exec(), I got
SyntaxError: EOL while scanning string literalHow to get rid of it? Best Regards, Jach Fong -- https://mail.python.org/mailman/listinfo/python-list
I have a multiline string, something like '''...\nf.write('\n')\n...'''
when pass to exec(), I got
SyntaxError: EOL while scanning string literalHow to get rid of it? Best Regards, Jach Fong -- https://mail.python.org/mailman/listinfo/python-list