from otree.api import * import numpy as np import random doc = """ introPage """ class C(BaseConstants): NAME_IN_URL = 'introPage' PLAYERS_PER_GROUP = 3 NUM_TASKS = 2 NUM_ROUNDS = 1 #这是指introPage app出现的次数 INSTRUCTIONS_TEMPLATE = 'introPage/instructions.html' class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): pass # PAGES class Ready(Page): @staticmethod def js_vars(player: Player): return dict(num_players = C.PLAYERS_PER_GROUP, num_tasks = C.NUM_TASKS) page_sequence = [Ready]