摘要 |
A lock includes a housing, a cover, a lock cylinder holder, a lock cylinder, a cam, a resisting shaft, at least one latching block, and at least one first elastic member. The cover is secured to one end of the housing. A gap is formed between the cover and the housing. The lock cylinder holder is secured to the housing. The lock cylinder is rotatably mounted in the lock cylinder holder. The cam is received in the housing and secured to the lock cylinder. The resisting shaft is rotatably mounted in the housing and includes a frustum shaped end. The latching block is received in the gap. The latching block includes an inclined surface corresponding to the frustum shaped end. The first elastic member is configured to connect the latching block to the cover or the housing. An electronic device using the lock is also provided. |