modify function extract_fromcode
Reason: I used to write too wordy
原因：以前写的太罗嗦