并不到对组合进行两次测试: # pythagorean.triple.pyfrom math import sqrt# this will generate all possible pairsmx = 10triples = [(a, b, sqrt(a**2 + b**2))for a in range(1, mx ...