A lock has a housing with a hole. A lock post has an interior end fixed in the housing and an exterior end extruded out of the housing via the hole. The lock post has a lock portion at the exterior end thereof. Two close posts have interior ends received in the housing and a plate is connected to the interior ends. The close posts are movable relative to the lock post. A control device is provided to the housing for manipulation to move the close posts. An elastic device is provided in the housing with opposite ends against the housing and the plate. A lock mechanism is provided to the housing to be switched between an unlock condition, in which the close posts are free for movement, and a lock condition, in which the close posts are exterior ends thereof extruded out of the housing and are secured threat.
A dual-mode lock with a combination identification function has a combination mechanism and a cylinder mechanism. The combination mechanism has multiple wheel assemblies. Each wheel assembly has an identification notch formed at a specific position corresponding to a combination number of the wheel assembly. The cylinder mechanism has an actuating shaft that is unlocked and rotated by an operating key. Additionally, the actuating shaft moves an access panel that has multiple aligning holes to align the aligning holes respectively with the identification notches. Consequently, a user can easily identify the combination of the dual-mode lock by insertion of a simple detecting tool.