当我使用input()命令时,它给了我一个错误(Python 3.8)

我在哪里使用input()命令,都会出现此错误,有人知道为什么以及如何解决? (我正在使用PyCharm和Python 3.8)

错误代码为:

What is your nameTraceback (most recent call last):
  File "C:/Users/admin/PycharmProjects/untitled3/venv/CodeLearning.py", line 1, in <module>
    x = input("What is your name")
  File "C:\Users\admin\AppData\Local\Programs\Python\Python38-32\lib\codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 12: invalid start byte

谢谢。

评论