上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页
摘要: SELECT t.*, CASE WHEN t.SaleDealMoney_last IS NULL OR t.SaleDealMoney_last=0 THEN 0 ELSE FORMAT(((t.SaleDealMoney_this-t.SaleDealMoney_last)/t.SaleDea 阅读全文
posted @ 2019-12-20 08:45 cup_leo 阅读(967) 评论(0) 推荐(0) 编辑
摘要: def FuncRecursive(len_curr=0, sen_odd=[], sen_curr=[]): """ 递归函数,将形如 [['1'], ['1', '2'], ['1']] 的list转为 ['111','121'] :param count: int, recursion tim 阅读全文
posted @ 2019-11-20 10:41 cup_leo 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 原文 : https://cloud.tencent.com/developer/ask/188486 import os, sys class HiddenPrints: def __enter__(self): self._original_stdout = sys.stdout sys.std 阅读全文
posted @ 2019-11-16 20:45 cup_leo 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 高效方法:dfs[dfs['delta'].isnull()==False].sort_values(by='delta', ascending=True).groupby('Call_Number', as_index=False).first() 阅读全文
posted @ 2019-10-30 13:36 cup_leo 阅读(3502) 评论(0) 推荐(0) 编辑
摘要: 链接:https://blog.csdn.net/ZWX2445205419/article/details/80113472 1. 安装Anaconda 2. 创建虚拟环境 > conda create -n myenv python=3.5> conda info -e # 查看虚拟环境12 3 阅读全文
posted @ 2019-10-30 13:33 cup_leo 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 1 from pyDes import des, CBC, PAD_PKCS5 2 import binascii 3 4 # 秘钥 5 KEY = 'mHAxsLYz' 6 7 8 from pyDes import des, CBC, PAD_PKCS5 9 import binascii 10 11 # 秘钥 12 KEY = 'mHAxsLYz' 13 14 ... 阅读全文
posted @ 2019-10-22 14:38 cup_leo 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 这里说的字符串不是一般意义上的字符串,是指在读取日期类型的数据时,如果还没有及时解析字符串,它就还不是日期类型,那么此时的字符串该怎么与时间戳之间进行转换呢? ① 时间字符串转化成时间戳 将时间字符串转化成时间戳分为两步: 第一步:将时间字符串转换成时间元组 第二步:将时间元组转换成时间戳类型 ② 阅读全文
posted @ 2019-10-12 15:08 cup_leo 阅读(2896) 评论(0) 推荐(0) 编辑
摘要: If order does not matter, you can use foo = "mppmt" "".join(set(foo)) set() will create a set of unique letters in the string, and "".join() will join 阅读全文
posted @ 2019-09-26 09:51 cup_leo 阅读(11777) 评论(0) 推荐(0) 编辑
摘要: 安装之前先检查一下系统有没有自带open-jdk 命令: rpm -qa |grep java rpm -qa |grep jdk rpm -qa |grep gcj 如果没有输入信息表示没有安装。 如果安装可以使用rpm -qa | grep java | xargs rpm -e --nodep 阅读全文
posted @ 2019-09-20 15:07 cup_leo 阅读(3314) 评论(0) 推荐(0) 编辑
摘要: def asr_to_correct(text): rep = dict((re.escape(k), v) for k, v in error_asr_map.items()) pattern = re.compile("|".join(rep.keys())) text = pattern.sub(lambda m: rep[re.escape(m.group(0))], text) retu 阅读全文
posted @ 2019-09-09 11:16 cup_leo 阅读(1312) 评论(0) 推荐(0) 编辑
上一页 1 ··· 11 12 13 14 15 16 17 18 19 ··· 21 下一页