2009年5月4日 星期一

Define a function and return value

def fun1(a,b):
return abs(a-b)

print(fun1(20,5))
print(fun1(5,30))

結果
15
25

沒有留言:

張貼留言