摘要:
import json from datetime import datetime import MySQLdb import requests from flask import Flask, redirect, request app = Flask(__name__) class ApiError(Exception): def __init__(self, code, m... 阅读全文
摘要:
import pandas as pd import requests import arrow from collections import deque import json campaign_name_deq = deque(['1'],2) ad_name_deq = deque(['1'],2) Today = arrow.now().format("YYYY-MM-DD") ... 阅读全文
摘要:
import pandas as pd import jieba import jieba.analyse from collections import Counter,OrderedDict jieba.load_userdict('./userdict.txt') # 加载外部 用户词典 def stopwordslist(filepath): stopwords = [li... 阅读全文
摘要:
filter sorted heapq counter namedtuple reduce deque pickle islice re.split endswith stat os #filter >>> aa = [1,2,3,45,6,7] >>> list(filter(lambda x:x 阅读全文
摘要:
import json import hashlib import time import requests from collections import OrderedDict import arrow import pandas as pd import pandas.io.formats.excel from xlsxwriter.utility import xl_rowcol_to... 阅读全文
摘要:
在线练习网站https://rootnroll.com/d/pipenv/ 阅读全文
摘要:
1、pipenv 真实环境 vs virtualenv vs pipenv 2、自定义用户模型 继承BaseUserManager和AbstractBaseUser,在settings中指定AUTH_USER_MODEL 3、优先使用通用类视图 函数视图(FBV)--> 类视图(CBV) --> 通 阅读全文
摘要:
# coding=utf-8 import pandas as pd import yagmail import requests import arrow import numpy as np import matplotlib as mpl from matplotlib.font_manager import _rebuild _rebuild() # reload一下 mpl.rcP... 阅读全文
摘要:
1、新建crontab_file vim输入代码*/1 * * * * /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 /Users/erick/Desktop/main.py>>/Users/erick/Desktop/d 阅读全文