File "<string>", line 1 recv_data = {'type': 'file'} ^ SyntaxError: invalid syntax
看看这句前后的代码,这句代码本身没有语法错误