#比较大小#name:maxNumber.py#比较两个数大小#C:\Users\Anthony\AppData\Local\Programs\Python\Python36-32\Lib\site-packagesdef maxTwo(x,y): if x > y: print(x) else: print(y) def maxThree(x,y,z): if x > y: maxTwo(x,z) else: maxTwo(y,z)…
class calculator: def add(x,y): return x + y print(added) def sub(x,y): return x - y print(sub) def mul(x,y): return x * y print(mul) def div(x,y): return x / y print(div) print (calculator.mul(3,5))print (calculator.add(3,5)) # 少写参数或者不写,会报错 # calcul…