完美解决None of the following candidates is applicable because of receiver type mismatch:

NoSuchKey