f(x){2x*x, x<0f(x){X**0.5+6, X>=0(注意,输出来的是一起,不是分开的。花括号是输出一个的)
你好
import math y=(2*x*x if (x<0) else math.sqrt(x)+6)