def comment(cls,id): '''评论过的''' if cls.exists24(id): uid=EntryModel.uid_by_eid(id) weight=1 if UserModel.has_pet(uid): weight=1.5 cls._add_weight(id,weight) else: cls._add_weight48(id,2)