编辑代码

# coding:utf-8
#JSRUN引擎2.0,支持多达30种语言在线运行,全仿真在线交互输入输出。 
#print("Hello world!   -  python.jsrun.net .")

def score(mates):
    return 32 * (1 / mates)

sum_score = 0

while True:
    past = input('欢迎来到积分计算机\n请回车继续【exit退出】') or 'GO'
    if past == 'exit':
        print('已退出')
        break
    elif past == 'GO':
        scores = int(input('表扬人数是:'))
        if scores > 0:
            print('得',round(score(scores)),'分')
            sum_score = sum_score + score(scores)
            print('求和',round(sum_score))
        else:
            print('请重新输入')
    else:
        print('请重新输入')