Formal:
* 老师,非常感谢您! (Lǎoshī, fēicháng gǎnxiè nín!) - This is the most formal way to express gratitude to a teacher. It literally translates to "Teacher, thank you very much!"
* 老师,谢谢您! (Lǎoshī, xièxie nín!) - This is slightly less formal than the previous phrase, but still very respectful. It translates to "Teacher, thank you!"
Informal:
* 老师,谢谢您! (Lǎoshī, xièxie nín!) - This is the most common way to express gratitude to a teacher, and it is suitable for most situations.
* 老师,谢谢! (Lǎoshī, xièxie!) - This is even more informal than the previous phrase, and it can be used with teachers you know well.
Note: The word "您" (nín) is used as a polite form of "you" when addressing someone older or in a position of authority, like a teacher.
You can also add other phrases to express your appreciation, such as:
* 您辛苦了! (Nín xīnkǔ le!) - You worked hard!
* 您的帮助对我很有帮助。 (Nín de bāngzhù duì wǒ hěn yǒu bāngzhù.) - Your help was very helpful to me.
* 我真的很感激您。 (Wǒ zhēn de hěn gǎnjī nín.) - I'm really grateful to you.
Remember to choose the appropriate phrase based on your relationship with the teacher and the situation.