|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 hydrant 于 2019-2-21 21:50 编辑
可否帮忙看一下,我的为什么会出错呢?
WIN7、Phthon2.7
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
return repr(str(value))
File "C:\Python27\lib\site-packages\xlwings\ext\sql.py", line 9, in conv_value
for value, typ in zip(row, types)
File "C:\Python27\lib\site-packages\xlwings\ext\sql.py", line 45, in <genexpr>
for row in rows
File "C:\Python27\lib\site-packages\xlwings\ext\sql.py", line 47, in <genexpr>
for row in rows
File "C:\Python27\lib\site-packages\xlwings\ext\sql.py", line 47, in sql
ret = func(*args)
File "C:\Python27\lib\site-packages\xlwings\udfs.py", line 311, in call_udf
res = call_udf(script, fname, args, this_workbook, FromVariant(caller))
File "C:\Python27\lib\site-packages\xlwings\server.py", line 198, in CallUDF
return func(*args)
File "C:\Python27\lib\site-packages\win32com\server\policy.py", line 585, in _invokeex_
return S_OK, -1, self._invokeex_(dispid, lcid, wFlags, args, None, None)
File "C:\Python27\lib\site-packages\win32com\server\policy.py", line 282, in _invoke_
return self._invoke_(dispid, lcid, wFlags, args)
File "C:\Python27\lib\site-packages\win32com\server\policy.py", line 277, in _Invoke_
|
|