37,721
社区成员
发帖
与我相关
我的任务
分享
class SortMovie(object):
"""docstring for SortMovie"""
#count = Integer('count')
def __init__(self, category,location,count):
#super(SortMovie, self).__init__()
self.category = category
self.location = location
self.count = count + 0
def printDetail(self):
print (self.category,self.location,self.count)
firstSortTotalCount = 0
for sortMovie in firstSortMovies:
#print(type(sortMovies.count))
firstSortTotalCount = firstSortTotalCount + sortMovies.count
firstSortMovies.append(SortMovie("喜剧","大陆",len(temp_movies)))
@property
def count():
return self.count