Error reported in Python: syntax error: invalid character in identifier

Sometimes code copied from the Internet is left unmodified and is often reported as “SyntaxError” or “invalid Character in Identifier”
Online a search answer, said the Chinese state brackets, this is really a reason;
Another reason is that there is a space at the end of the code. After removing the space, the code runs


Read More: