阅读背景:

如何查找字典中的值是否在某个范围内

来源:互联网 

I need to determine if a year (which is a value in a dictionary) is within a certain range of years. the dictionary looks like this: print(movies[3520029]) = {'genre': ['Sci-Fi', 'Action', 'Adventure'], 'movie_year': 2010, 'name': 'TRON: Legacy', 'rating': 6.8, 'numvotes': 254865}. there are numerous entries. I need to find the movies in a range between two years, which are inputs given by the user. Im not sure how to do this. i tried I need to determine if a year (which is a value




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: