摘要:
贪婪 str = [abc[def]gh] pat = r"(\[.*\])" result = re.findall(pat, str,re.M) pringt(result) >>> [abc[def]gh] 非贪婪 str = [abc[def]gh] pat = r"(\[.*?\])" r 阅读全文
摘要:
#!/usr/bin/env python # -*- coding: utf-8 -*- from wordcloud import WordCloud, STOPWORDS from imageio import imread from sklearn.feature_extraction.te 阅读全文
摘要:
import os import re import logging from bs4 import BeautifulSoup from openpyxl import Workbook from openpyxl.utils import get_column_letter import dat 阅读全文
摘要:
from tkinter import filedialog import tkinter #定义文件路径选择时间 def Button_command(): # Folderpath = filedialog.askdirectory() # 获得选择好的文件夹 Filepath = filedi 阅读全文
摘要:
import os import re import zipfile import logging import requests from bs4 import BeautifulSoup from openpyxl import Workbook from openpyxl.utils impo 阅读全文
摘要:
R语言--初步学习 阅读全文
摘要:
1 step = 1 2 max_steps = len(letter) 3 max_arrow = 60 4 5 6 for str_le in letter: 7 8 #进度条 9 max_steps = len(letter) 10 max_arrow = 60 11 step = 0 12 阅读全文
摘要:
1 2 import requests 3 from bs4 import BeautifulSoup 4 import traceback 5 import re 6 7 def getHTMLText(url, code="utf-8"): #获取股票页面信息 8 try: 9 r = requ 阅读全文