【发布时间】:2009-02-12 07:24:05
【问题描述】:
File "/usr/local/lib/python3.0/cgi.py", line 477, in __init__
self.read_urlencoded()
File "/usr/local/lib/python3.0/cgi.py", line 577, in read_urlencoded
self.strict_parsing):
File "/usr/local/lib/python3.0/urllib/parse.py", line 377, in parse_qsl
pairs = [s2 for s1 in qs.split('&') for s2 in s1.split(';')]
TypeError: Type str doesn't support the buffer API
谁能指导我如何避免这种情况?我通过将数据输入cgi.Fieldstorage 来获得它,但我似乎无法以其他任何方式做到这一点。
【问题讨论】:
标签: python cgi python-3.x urllib