二者都可以,例如:
1、Her position in the party has strengthened in recent weeks.最近幾個星期以來,她在黨內的地位有所增強。
2、There are deep divisions in the party over the war.黨內對於這場戰爭存在着嚴重的分歧。
3、I take it you won't be coming to the party?我想你不會來參加聚會吧
in the party還是to the party
要看句子要表達的意思。in the party表示在這個聚會裏。to the party 如I will go to yhe party,意思是我會去這個聚會。