from otree.api import * c = cu doc = '' class Constants(BaseConstants): name_in_url = 'preferences_Chinese' players_per_group = None num_rounds = 1 class Subsession(BaseSubsession): pass class Group(BaseGroup): pass class Player(BasePlayer): gps19 = models.IntegerField(choices=[[0, '0 - 完全不愿意这么做'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 非常愿意这么做'], [99, '不知道/不适用']], label='您有多愿意惩罚那些对您不公正的人,即使可能要您付出代价') gps20 = models.IntegerField(choices=[[0, '0 - 完全不愿意这么做'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 非常愿意这么做'], [99, '不知道/不适用']], label='您有多愿意惩罚那些对别人不公正的人,即使可能要您付出代价') gps21 = models.IntegerField(choices=[[0, '0 - 完全不愿意这么做'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 非常愿意这么做'], [99, '不知道/不适用']], label='您有多愿意进行慈善捐赠,而不期待任何回报') gps22 = models.IntegerField(choices=[[0, '0 - 完全不同意'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 完全同意'], [99, '不知道/不适用']], label='别人帮助您,您很愿意作出回报') gps23 = models.IntegerField(choices=[[0, '0 - 完全不同意'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 完全同意'], [99, '不知道/不适用']], label='如果您被很不公平地对待,您会第一时间作出报复,就算要付出代价') gps24 = models.IntegerField(choices=[[0, '0 - 完全不同意'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 完全同意'], [99, '不知道/不适用']], label='您认为人们都是心存好意的') gps25 = models.IntegerField(choices=[[0, '0 - 完全不同意'], [1, '1'], [2, '2'], [3, '3'], [4, '4'], [5, '5'], [6, '6'], [7, '7'], [8, '8'], [9, '9'], [10, '10 - 完全同意'], [99, '不知道/不适用']], label='您数学很好') gps58 = models.IntegerField(choices=[[1, '不,不会送礼物'], [2, '价值4元的礼物'], [3, '价值8元的礼物'], [4, '价值12元的礼物'], [5, '价值16元的礼物'], [6, '价值20元的礼物'], [7, '价值24元的礼物'], [99, '不知道/不适用']], label='您会把哪个礼物送给陌生人') gps59 = models.CurrencyField(blank=True, label='您会把这笔钱中的多少金额进行慈善捐赠?如果您不知道/不适用,可以不回答', max=800, min=0) class Gps_19to21(Page): form_model = 'player' form_fields = ['gps19', 'gps20', 'gps21'] class Gps_22to25(Page): form_model = 'player' form_fields = ['gps22', 'gps23', 'gps24', 'gps25'] class Gps_58(Page): form_model = 'player' form_fields = ['gps58'] class Gps_59(Page): form_model = 'player' form_fields = ['gps59'] page_sequence = [Gps_19to21, Gps_22to25, Gps_58, Gps_59]