示例#1
0
文件: calc.py 项目: merlin428/merlin
import mymathmodule

addres = mymathmodule.add(100, 200)
subres = mymathmodule.sub(200, 100)
mulres = mymathmodule.mul(10, 20)
print(addres)
print(subres)
print(mulres)
示例#2
0
import mymathmodule



addres=mymathmodule.add(100,200)
subres=mymathmodule.sub(10,30)
print(addres)
print(subres)
示例#3
0
import mymathmodule

addres = mymathmodule.add(100, 200)
subres = mymathmodule.sub(700, 500)
print(addres)
print(subres)
示例#4
0
def main():
    print("add 1, 2 =>", mymathmodule.add(1, 2))
    print("sub 2, 1 =>", mymathmodule.sub(2, 1))
    print("mul 2, 2 =>", mymathmodule.mul(2, 2))
    print("div 4, 2 =>", mymathmodule.div(4, 2))
示例#5
0
import mymathmodule
addres = mymathmodule.add(100, 200)
subres = mymathmodule.sub(500, 200)
print(addres)
print(subres)