问题遇到的现象和发生背景
在准备考计算机二级的python,这是给出的答案,不知道为什么会报错
问题相关代码,请勿粘贴截图
```python
import time
t = time.localtime()
print(time.strftime('%Y年%m月%d日%H时%M分%S秒',t))
###### 运行结果及报错内容
```python
Traceback (most recent call last):
File "D:/2021-11-18创建python/python模考答案/10.py", line 11, in <module>
print(time.strftime('%Y年%m月%d日%H时%M分%S秒',t))
UnicodeEncodeError: 'locale' codec can't encode character '\u5e74' in position 2: Illegal byte sequence