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