# -*- coding: utf-8 -*-
import argparse
def parser():
ap = argparse.ArgumentParser()
ap.add_argument("-a", "--a", required=True, help="边a的边长")
ap.add_argument("-b", "--b", required=True, help="边b的边长")
ap.add_argument("-c", "--c", required=True, help="边c的边长")
return ap.parse_args()
def main():
opt = parser()
a = float(opt.a)
b = float(opt.a)
c = float(opt.a)
if a+b>c and a+c>b and b+c>a:
print ("a=%s, b=%s, c=%s 可以构成三角形" % (a, b, c))
if a == b == c:
print ("a=%s, b=%s, c=%s 构成等边三角形" % (a, b, c))
elif a == b or b == c or a == c:
print ("a=%s, b=%s, c=%s 构成等腰三角形"