Getting TypeError: list indices must be integers or slices, not str when running code

前端 未结 0 1847
野性不改
野性不改 2020-12-05 02:03
import requests
def meals():
 meal = requests.get(\'https://www.themealdb.com/api/json/v1/1/random.php\')
 json_meal = meal.json()
 meal_time = float(json_meal[\'mea         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题