0
Follow
0
View

python learning, cs61a hog

echo_xiuxiu 注册会员
2023-02-26 18:08

the reference answer GPT ᴼ ᴾ ᴱ ᴺ ᴬ ᴵ < br / > according to the error information you provide, looks like running hog_gui. Py KeyError appeared. Specifically, when executing the STRATEGIES[name] line, an error occurred where the name key could not be found. The value of name is 'Pick a strategy', which is not a valid policy name.

Therefore, you need to check your GUI code to see if you have correctly set up the various available strategies and their corresponding names in the "Pick a strategy" drop-down box. If not, you need to make sure you set the policy and name correctly before running hog_gui.py. If you have the policy and name set correctly, you need to further examine your code to see if any other errors are causing the problem.

About the Author

Question Info

Publish Time
2023-02-26 18:08
Update Time
2023-02-26 18:08

Related Question

在安装python 2.7的Linux机器上安装python 3.7虚拟环境

如何在python中解密实现c# DES加密

如何清理数据字符串从数据帧值在python

计算机二级证书和1+x(语言-python)

在macOS上将Python版本升级到3.9现在会对一些文件读取代码给出“变量未定义”的错误

python导入pkl文件夹

无法在VSCODE中运行python-sample- vcode -django-tutorial

python识别文字

在Python中,print("something", end="")和print("something", end=None)有什么区别?

python输出星期几