TypeError: POST data should be bytes, an iterable of bytes, or a file object.制作有道翻译小翻译软件的问题解决方法
TypeError: POST data should be bytes, an iterable of bytes, or a file object. It cannot be of type str.的错误urllib发送post请求必须是字节不能是字符串import urllib.requestimport urllib.parseimport jsonwhile True: key=input('你需要翻译的数据:') data={ 'i':key,