摘要:
错误信息:File doesn't exist Arg_ParamName_Name 修改编发:把文件名改成从根目录开始 阅读全文
摘要:
随便新建一列 在第一行写上=rand(),确定,生成一个小数 鼠标悬浮在第一行右下角,出现黑色加黑的+,双击,点击排序,随便选一个排序方式 阅读全文
摘要:
def br2_br1(content): content = re.sub('<br>(\s+)<br>', '', content) content = re.sub(r"(<br>)\1+", r"\1", content) content = re.sub("<br>", '<br><br> 阅读全文
摘要:
def update_biaoqian(tag_list, title): if tag_list == [''] or tag_list == []: print('没有标签,取标题作为标签') titless = re.sub('\s', ',', title) tag_list = title 阅读全文
摘要:
def get_all(content, keyword): keys = [] values = [] for specs in keyword: num = keyword.index(specs) keys.append(specs) if num <= len(keyword) - 2: v 阅读全文
摘要:
def del_nt(title_list): title_new = [] for title_old in title_list: title = re.sub('\s', '', title_old) if title == '': pass else: title_new.append(ti 阅读全文
摘要:
import pandas as pdimport numpy as nppath = '产业布局-企业.xlsx'# 详情页链接title = pd.read_excel(path, usecols=[2])title_arr = np.asarray(title.stack()) # Dataf 阅读全文
摘要:
def update_biaoqian(tag_list, title): if tag_list==[''] print('没有标签,取标题作为标签') titless = re.sub('\s', ',', title) tag_list = title.replace('、', ',').re 阅读全文
摘要:
def del_nt(title_list): title_new = [] for title_old in title_list: title = re.sub('\s', '', title_old) if title == '': pass else: title_new.append(ti 阅读全文
摘要:
内容里有特殊字符,用re.escape(pattern)转义一下 阅读全文