(a)写一个函数,计算并返回两个数的乘积
#!/usr/bin/python
# -*- coding: UTF-8 -*-
a=4
b=4
print(a*b)
(b)写一段代码调用这个函数,并显示它的结果
1)#!/usr/bin/python
# -*- coding: UTF-8 -*-
sum=lambda arg1, arg2: arg1*arg2
print "相乘后的值为:",sum(4,4)
2)#!/usr/bin/python
# -*- coding: UTF-8 -*-
def printme(str):
print 4*4
return
printme("两数乘积:")