python中 print后用了括号还是提示 invaid syntax
maxn=max(a,b,c)minn=min(a,b,c)mn=a+b+c-maxn-minnifmaxn==aandminn==bprint("123")elifma...
maxn=max(a,b,c)
minn=min(a,b,c)
mn=a+b+c-maxn-minn
if maxn == a and minn == b
print("123")
elif maxn == a and minn == c
print("132")
elif maxn == b and minn == a
print ("231")
elif maxn == b and minn == c
print ("213")
elif maxn == c and minn == a
print ("321")
elif maxn == c and minn == b
print ("312") 展开
minn=min(a,b,c)
mn=a+b+c-maxn-minn
if maxn == a and minn == b
print("123")
elif maxn == a and minn == c
print("132")
elif maxn == b and minn == a
print ("231")
elif maxn == b and minn == c
print ("213")
elif maxn == c and minn == a
print ("321")
elif maxn == c and minn == b
print ("312") 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询