1、 定义一个getMax函数,返回三个数(键盘输入)中最大的值
def getMax():
a=int(input("请输入第一个数字"))
b = int(input("请输入第二个数字"))
c = int(input("请输入第三个数字"))
if a>b and a>c:
print("最大的数是",a)
elif b>a and b>c:
print("最大的数是",b)
elif c>a and c>b:
print("最大的数是",c)
getMax()
2、 编写函数,求出‘1/(12)-1/(23)+1/(34)-1/(45)…’前n项和,函数以n为参数,它是用户输入的
def calcu