简单的加减乘除:
1.加法模块:
def add(x,y):
"""
:param x:整数
:param y:整数
:return: 返回和
"""
res=x+y
return res
2.减法模块:
def ded(x,y):
res=x-y
return res
3.乘法模块:
def mul(x,y):
res=x*y
return res
4.主程序:
from functions import plus,deduction,multi
print(plus.add(3,4))
print(multi.mul(3,4))
print(deduction.ded(3,4))
5.输出: