weixin_39747755的博客python 判断三个数字中的最大值,具体代码如下所示:#判断三个数中最大值n1= int(input('please enter the firest number:'))n2 = int(input('please enter the second number:'))n3 = int(input('please enter the ...
weixin_39536806的博客 print(x) sum3=sum3+x print("结果2:",sum3) #数列求最值 a=[32,423,423,432,555,56,65,756,856,52,52] max1=a[0] for x in range(0,len(a)-1): if max1[x+1]: max1=a[x+1] print("最大值是:",max1) min1=a[0] ...