编写函数,函数原型为 def f(n),求 f(x)的值。函数的定义如下图所示: def f(n): if(x<1): print(n) elif(1<=n<10): print(2*n-1) else: print(3*x-11) x=int(input("请输入x的值:")) f(x)