摘要:
def submit(path): data = [] for line in open(path): if not line.strip(): continue _ = json.loads(line.strip()) res = predict(_["text"]) data.append(js 阅读全文
摘要:
def execute_sql_file(sql_path): conn_alg,cur_alg = conn_mysql("mysql_algorithm",11433) with open(sql_path,'r+') as f: # every sql job last line marked 阅读全文
摘要:
https://blog.csdn.net/xyisv/article/details/82430107 阅读全文
摘要:
https://www.jianshu.com/p/24a693fff4a3 # -*- coding: utf-8 -*- import xlrd import uuid class Student(): def __init__(self, id, **kw): self.id = id for 阅读全文
摘要:
python对齐输出 https://www.cnblogs.com/nul1/p/11136495.html python - 输出列表自动对齐(支持中英文混合) https://blog.csdn.net/weixin_44823747/article/details/108118181?utm 阅读全文
摘要:
import time from datetime import datetime def getBetweenDay(begin_date,end_date): date_list = [] begin_date = datetime.strptime(begin_date, "%Y-%m-%d" 阅读全文
摘要:
create table incre_table (AutoIncreID int); insert into incre_table values (1); insert into incre_table values (2); insert into incre_table values (3) 阅读全文
摘要:
发现一个免费资源很适合技术的PPT网站: http://www.ypppt.com/ 分享给大家哦 阅读全文
摘要:
#!/usr/bin/env python3 # coding: utf-8 import datetime def last_day_of_month(any_day): """ 获取获得一个月中的最后一天 :param any_day: 任意日期 :return: string """ next 阅读全文
摘要:
LabelEncoder可以将标签分配一个0—n_classes-1之间的编码 将各种标签分配一个可数的连续编号 将DataFrame中的每一行ID标签分别转换成连续编号: import pandas as pd from sklearn.preprocessing import LabelEnco 阅读全文