← 返回题库
高级

Find Movies

未完成 0%

示例

输入
database = [{"name": "Gone with the Python", "director": "Victor Pything", "year": 2017, "runtime": 116},
{"name": "Pythons on a Plane", "director": "Renny Pytholin", "year": 2001, "runtime": 94},
{"name": "Dawn of the Dead Programmers", "director": "M. Night Python", "year": 2011, "runtime": 101}]

my_movies = solve(database, "python")
print(my_movies)
期望输出
[{'name': 'Gone with the Python', 'director': 'Victor Pything', 'year': 2017, 'runtime': 116}, {'name': 'Pythons on a Plane', 'director': 'Renny Pytholin', 'year': 2001, 'runtime': 94}]
Python 代码 🔒 登录后使用
🔒

登录后即可练习

注册免费账号,在浏览器中直接运行 Python 代码