python函数def示例(计算梯形面积):python
#!/usr/bin/pythonide
def fun(a,b,h):s = (a+b)*h/2print s函数
fun(3,4,5):wqit