-1
輸出「用於此代碼進程結束,退出代碼0」,但我希望它是作爲真或假我希望函數採取輸入和過程它 - Python代碼
def is_tri(p,q,r): # function to lengths values of triangle
if(p>(q+r)):
return "False"
elif(q>(p+r)):
return "False"
elif(r>(p+q)):
return "False"
else:
return "True"
p = int(input("Enter first side length: "))
q = int(input("Enter second side length: "))
r = int(input("Enter`enter code here` third side length: "))
is_tri(p,q,r)
ThanQ對於您的幫助。我知道了 – cnu