#Python输入任意多个数字,当按回车键时退出,结束输入,输出放存在列表1s中的数,并统计输出最大的数和最小的数及最大的数和最小数的平均值
ls = list(map(int,input().split()))
print("最大的数:{},最小的数:{},最大的数和最小数的平均值:{}".format(max(ls),min(ls),(max(ls)+min(ls)/2)))
卢名雪的博客最简单的解决方案可能是创建一个函数,该函数将显示的消息作为输入,并在测试其满足条件后返回用户输入:def guess_input(input_message):flag = False#endless loop until we are satisfied with the inputwhile True...