Two senators getting over surgery have left the hospital, their offices said yesterday. Sen. Pete Wilson (R-Calif.), who had undergone an emergency appendectomy, and Sen. J. James Exon (D-Neb.), who had an operation last week to remove his ruptured gall bladder, had been at the Bethesda Naval Medical Center.

Wilson made headlines when he was driven from the hospital to the Capitol by ambulance and wheeled into the Senate to cast a crucial vote in the battle over the federal budget.

"I am anxious to get back to work, particularly with the defense budget being debated on the Senate floor beginning Monday," Wilson reportedly told aides who greeted him as he emerged from the hospital Thursday.

Still hospitalized is Sen. John East (R-N.C.), who is being treated for what his office said is hypothyroidism. . .

Patrick V. Murphy celebrated his retirement from the Police Foundation last night at a reception and dinner at the Vista International Hotel. Murphy, who served as president of the foundation for 12 years, will be succeeded by Hubert Williams, police director in Newark. FBI Director William H. Webster has been chosen to receive the first Patrick V. Murphy Award for Distinguished Service to American Law Enforcement . . .

First dog Lucky has returned home to the White House from obedience school. Lucky has learned to sit and stay, according to Nancy Reagan's press office, but the dog still jumps onto the passenger seat of the Reagans' helicopter when they head for Camp David . . .

At the second annual ZooFari last night, the ZooFari committee presented National Zoo Director Dr. Michael H. Robinson with a $40,000 check. The money will benefit the Theodore H. Reed Acquisition Fund established last year. The event, held on the zoo's grounds, attracted about 450 people.