这是虚拟语气,它表达的内容与现在的事实相反.
另例:
If I were you,I would not learn English.(如果我是你,我就不学英语.)
正式语体或书面语需要用were,口语中可以用was.