用did,如果改成onlywhen,onlywhenherealizedtheimportanceoflearningenglishdidhedecidetostudyhard.而且二者意义不同onlywhen意思是直到...时候才....onlythen意思是知道那是希望能给楼主些许帮助