我删去了代码,只显示了我认为与以下错误相关的部分。这是在Python3.x中完成的,因为我正试图自学,所以我以前没有任何Python2.x的经验
谢谢!在
Traceback (most recent call last):
File "rpcombat_refactored.py", line 306, in <module> shopping = buy_equipment()
File "rpcombat_refactored.py", line 242, in buy_equipment
print("You have a", join_with_and(profile['inventory']), "in your bag.")
File "rpcombat_refactored.py", line 94, in join_with_and elif sequence < 1:
TypeError: unorderable types: list() < int()
代码:
^{pr2}$
您的
generate_rpc
方法不返回配置文件。它什么也不返回。所以profile
不是None。在相关问题 更多 >
编程相关推荐