I can't figure out why there is a syntax error in this code

前端 未结 3 768
闹比i
闹比i 2021-01-29 09:39

So I have this python code that I\'m to run in my mac\'s terminal but when I try running it with python in the terminal it gives me a syntax error on line 27 like so:

         


        
3条回答
  •  心在旅途
    2021-01-29 09:59

    Instead of ASCII single or double quotes you're using U+2018 and U+2019 here, hence the syntax error.

    Wrong quotes here as well:

    event.split(“,”)
    

提交回复
热议问题