Photoacoustic microscopy (PAM) is a medical-imaging technique with the merits of high contrast and resolution. Nevertheless, conventional PAM scans specimens in a diameter-by-diameter fashion, resulting in a time-consuming process. Furthermore, deep-learning-based PAM image enhancement necessitates acquiring ground-truth data for training purposes. In this paper, we built an optical-resolution photoacoustic microscopy system and introduced an innovative unsupervised-learning algorithm. First, we enhanced the rotational-scanning method, transitioning from a diameter-by-diameter approach to a sector-by-sector one, significantly reducing imaging time (from 280 s to 109 s). Second, by establishing a metric for unsupervised learning, we eliminated the need for collecting reliable and high-quality ground truth, which is a challenging task in photoacoustic microscopy. A total of 324 pairs of datasets (mouse ears) were collected for unsupervised learning, with 274 for training and 50 for testing. Additionally, carbon-fiber data were sampled for lateral resolution and contrast evaluation, as well as the effective rate evaluation of the algorithm. The enhanced images demonstrated superior performance compared with that of maximum projection, both subjectively and objectively. A 76% improvement in the lateral resolution was observed. The effective rate of the algorithm was measured to be 100%, which was tested on 50 random samples. The technique presented in this paper holds substantial potential for image postprocessing and opens new avenues for unsupervised learning in photoacoustic microscopy.