TypeError Traceback (most recent call last)
Cell In[1], line 28
25 return False
27 # 判断4060Ti是否满足最低配置
—> 28 can_play_min = compare_performance({
29 “memory_size”: memory_size,
30 “memory_bandwidth”: memory_bandwidth
31 }, min_game_requirements)
33 # 判断4060Ti是否满足推荐配置
34 can_play_recommended = compare_performance({
35 “memory_size”: memory_size,
36 “memory_bandwidth”: memory_bandwidth
37 }, recommended_game_requirements)
Cell In[1], line 23, in compare_performance(graphics_card, game_requirements)
22 def compare_performance(graphics_card, game_requirements):
—> 23 if graphics_card[“memory_size”] >= game_requirements[“graphics_card”][“memory_size”] and graphics_card[“memory_bandwidth”] >= game_requirements[“graphics_card”][“memory_bandwidth”]:
24 return True
25 return False
TypeError: string indices must be integers