X YX<0 X平方-2x+40<=x<10 xX>=10 4x+3
def XY(x): if x<0: return x*x-2*x+4 elif x<10: return x else: return 4*x+3