SyntaxError: Non-UTF-8 code starting with '\x91'

后端 未结 4 951
走了就别回头了
走了就别回头了 2020-11-28 14:49

I am trying to write a binary search program for a class, and I am pretty sure that my logic is right, but I keep getting a non-UTF-8 error. I have never seen this error and

4条回答
  •  无人及你
    2020-11-28 14:56

    The character you are beginning your constant strings with is not the right string delimiter. You are using

    ‘Ava Fischer’   # ‘ and ’ as string delimiters
    

    when it should have been either

    'Ava Fischer'   # Ascii 39 as string delimiter
    

    or maybe

    "Ava Fischer"   # Ascii 34 as string delimiter
    

提交回复
热议问题