题目描述: 输入梯形的上底,下底和高,设计函数,输出梯形面积 def S(a,b,h): s = (a + b) * h / 2 return s a = float(input("请输入梯形的上低:"