Python 3.7版本报错 cannot use a string pattern on a bytes-like object

NoSuchKey