首页 新闻 会员 周边 捐助

python写入excel,debug模式运行报错

0
悬赏园豆:30 [待解决问题]

pydev-eclipse编辑器

源码内容

from openpyxl import load_workbook
from openpyxl import Workbook
from openpyxl.writer.excel import ExcelWriter

def write_excel():
ex=load_workbook(filename=r'G:\eclipse-gzkj\zhengxin\p2p\aaa.xlsx')
print('open excel success!')
ws = ex.get_sheet_by_name("case")
print('open sheet1 success!')
ws.cell(row=4, column=2).value = 'hupi2222'
print('write values success!')
ex.save(filename='G:\eclipse-gzkj\zhengxin\p2p\aaa.xlsx')
print('save success!')

报错内容

pydev debugger: starting
Traceback (most recent call last):
File "G:\eclipse-java-indigo-SR1-win32-x86_64\eclipse\features\org.python.pydev_2.8.2.2013090511\pysrc\pydevd.py", line 956, in trace_dispatch
if not t.isAlive():
File "D:\Python34\lib\threading.py", line 1119, in is_alive
self._wait_for_tstate_lock(False)
File "D:\Python34\lib\threading.py", line 1075, in _wait_for_tstate_lock
assert self._is_stopped
AssertionError

测试bug的主页 测试bug | 初学一级 | 园豆:174
提问于:2016-05-31 16:58
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册