摘要:
在运行PyCharm程序时,报错提示:Empty test suite 找不到测试用例 打开另外一个之前写的同样的脚本就运行成功,把成功的脚本贴到这个编辑框内就失败,所以怀疑是这个编辑框的设置问题,于是开始百度。后来在网上看到了有用的解决方案,如下: 删除Python test里面,需要测试的脚本, 阅读全文
摘要:
```python """读取excel封装""" import xlrd import os class SheetTypeError(object): pass class ExcelReader(object): def __init__(self,excel_file,sheet_by): if os.path.exists(excel_file): self.excel_file = e 阅读全文
摘要:
```python from bs4 import BeautifulSoup from urllib import request import threading import re import os from lxml import html class SpiderCategory(threading.Thread): #继承父类threading.Thread def __init__ 阅读全文