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