问题 填空题 已知函数f(x)=log2x,x>02x,x≤0若f(a)=12,则a=______. 答案 当a>0时,log2a=12∴a=2,当a≤0时,2a=12=2-1,∴a=-1.∴a=-1或2.故答案为:-1或2.