lock core 301 to drive and rotate the projecting section 303 the lower latch hook 25 a is pushed away and disengaged from the upper latch hook 605 with the resilient member 205 compressed under such circumstance the latch cover 6 can be turned upward to unlock the male fastener please refer to fig2 to 21 d the above embodiment is applicable to a hanging lock 7 the hanging lock 7 has a housing 70 and a movable hook 80 pivotally disposed on the housing 70 a numeral unlocking unit 71 is installed in the housing 70 a key unlocked unit 81 is disposed on the movable hook 80 the movable hook 80 is movable relative to the housing 70 to form an unlocked state or a locked state the numeral unlocking unit 71 has a driving rod 710 extending toward the movable hook 80 the key unlocked unit 81 has a movable lock core 810 extending toward the driving rod 710 in reverse direction in a locked state of the movable hook 80 a rear end 811 of the movable lock core 810 just touches the driving rod 710 besides the rear end 811 is formed with a notch 812 when the movable lock core 810 is rotated to a certain angle by means of the notch 812 the movable lock core 810 avoids touching the driving rod 710 therefore a displaceable space 78 is defined between the movable lock.