def _star_share_comments(self, title): logger.debug(f'哟哟,切克闹,收藏转发来一套') if random.random() < 0.33: self._comments_once(title) if random.random() < 0.5: self._star_once() self._share_once() else: self._share_once() self._star_once() else: if random.random() < 0.5: self._star_once() self._share_once() else: self._share_once() self._star_once() self._comments_once(title)
def start(): try: if random.random() > 0.5: logger.debug(f'视听学习优先') app.watch() app.music() shuffle([app.read, app.daily, app.challenge, app.weekly]) else: logger.debug(f'视听学习置后') app.music() shuffle([app.read, app.daily, app.challenge, app.weekly]) app.watch() app.logout_or_not() except: print("发生异常") return 1 else: return 0 # sys.exit(0)