07 2020 档案

摘要:::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-thumb { -webkit-box-shadow: inset 0 0 1px rgba(136, 136, 136, 0.3); background-color: rgb(238, 阅读全文
posted @ 2020-07-29 11:18 xiaochuchun 阅读(1177) 评论(0) 推荐(0) 编辑
摘要:import pandas as pdimport numpy as npdf=pd.DataFrame(np.arange(6).reshape(3,2),index=list("abc"),columns=list("WX"))l=[]for item in list(np.arange(6). 阅读全文
posted @ 2020-07-24 15:49 xiaochuchun 阅读(3066) 评论(0) 推荐(0) 编辑
摘要:python存float的时候如财务数据等需要四舍五入两位数,但是python自带的四舍五入方法偶尔会存在“五舍六入”,提供两种处理函数 from decimal import Decimal, ROUND_HALF_UPdef round_dec(n, d=2): s = '0.' + '0' * 阅读全文
posted @ 2020-07-20 16:09 xiaochuchun 阅读(608) 评论(0) 推荐(0) 编辑
摘要:cur.lastrowid 阅读全文
posted @ 2020-07-10 15:45 xiaochuchun 阅读(1183) 评论(0) 推荐(0) 编辑
摘要:data=pd.read_excel(file)操作excel表格 获取到所有表头,输出为list:data.columns.values 获取到某几列数据:data=df.ix[:,['title','data']].values 转换成字典 df=pd.read_excel('lemon.xls 阅读全文
posted @ 2020-07-10 15:44 xiaochuchun 阅读(129) 评论(0) 推荐(0) 编辑
摘要:需求是:如果传的字段不为空则where中加条件,如果为空则此字段不为条件 方法:1.if判断动态增删sql(复杂) 2.方法是where (e.se_name='c' or 'c'='') c为传来的字段数据,如果c存在,则or后面条件不成立,前面的成立,如果不存在则反之 引用:https://bl 阅读全文
posted @ 2020-07-06 17:45 xiaochuchun 阅读(1829) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示