The invention discloses a key ordered type mechanical coded lock which comprises a lock shell, a spring bolt, code keys, a code elastic piece for resetting the code keys, a code changing button and a button elastic piece for resetting the code changing button, a code
locking plate, a movable plate, an unlocking plate, a movable elastic piece enabling the movable plate to reset and an unlocking elastic piece enabling the unlocking plate to reset are arranged in the lock shell, the code keys are provided with a plurality of code strips different in length and orientation, only one code strip of the code keys with codes can be extruded with the unlocking plate, and the code strips can be extruded with the unlocking plate. The lengths of the
password strips which can be extruded with the unlocking plate are different, the unlocking plate is sequentially extruded according to the sequence of the
password strips from short to long during unlocking, so that the unlocking plate is moved to an unlocking position, and when the
password keys are pressed down, the movable plate can be extruded open, so that the positioning surface 31 is positioned below the movable plate, and the unlocking plate is unlocked. After the movable plate is reset through the movable elastic piece, the positioning face 31 can abut against the movable plate so that the code keys can not bounce and reset, a code
locking mechanism is arranged between the code keys and the code
locking plate, and the code changing button can control the code
locking mechanism to be unlocked so that code setting can be achieved by rotating the code keys. The unlocking plate can enable the spring bolt to be unlocked through the unlocking and
locking mechanism, and the spring bolt can be locked through the unlocking and locking mechanism.