Python不明白为什么一定要用list,求大佬教教我
查看原帖
Python不明白为什么一定要用list,求大佬教教我
796073
Xfang03楼主2022/9/25 08:38

a,b,c=map(int,input().split()) if a+b<=c: print('Not triangle') else: if a2+b2==c2: print('Right triangle') elif a2+b2>c2 and b2+c2>a2 and a2+c2>b2: print('Acute triangle') else: print('Obtuse triangle') if a==b or b==c or a==c: print('Isosceles triangle') if a==b and b==c: print('Equilateral triangle')

2022/9/25 08:38
加载中...