Such errors are usually brackets, Chinese and English characters, Chinese and English punctuation, spaces in front of the code, especially the copied and pasted code, just remove it.
Such errors are usually brackets, Chinese and English characters, Chinese and English punctuation, spaces in front of the code, especially the copied and pasted code, just remove it.