上一页 1 2 3 4 5 6 7 8 ··· 38 下一页
摘要: 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... 阅读全文
posted @ 2019-07-13 15:43 Erick-LONG 阅读(1606) 评论(0) 推荐(0) 编辑
摘要: 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") ... 阅读全文
posted @ 2019-07-12 19:16 Erick-LONG 阅读(237) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd import jieba import jieba.analyse from collections import Counter,OrderedDict jieba.load_userdict('./userdict.txt') # 加载外部 用户词典 def stopwordslist(filepath): stopwords = [li... 阅读全文
posted @ 2019-07-12 16:55 Erick-LONG 阅读(441) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2019-07-10 09:20 Erick-LONG 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 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... 阅读全文
posted @ 2019-07-01 16:32 Erick-LONG 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 在线练习网站https://rootnroll.com/d/pipenv/ 阅读全文
posted @ 2019-06-19 09:09 Erick-LONG 阅读(3082) 评论(0) 推荐(0) 编辑
摘要: 1、pipenv 真实环境 vs virtualenv vs pipenv 2、自定义用户模型 继承BaseUserManager和AbstractBaseUser,在settings中指定AUTH_USER_MODEL 3、优先使用通用类视图 函数视图(FBV)--> 类视图(CBV) --> 通 阅读全文
posted @ 2019-06-19 08:59 Erick-LONG 阅读(998) 评论(0) 推荐(0) 编辑
摘要: # 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... 阅读全文
posted @ 2019-05-15 22:09 Erick-LONG 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 第三版 阅读全文
posted @ 2019-04-23 13:53 Erick-LONG 阅读(991) 评论(0) 推荐(0) 编辑
摘要: 1、新建crontab_file vim输入代码*/1 * * * * /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 /Users/erick/Desktop/main.py>>/Users/erick/Desktop/d 阅读全文
posted @ 2019-04-18 14:39 Erick-LONG 阅读(969) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 38 下一页