摘要: #计算并输出由用户指定两个整数之间所有素数x=( int(input("请输入开始值(整数):")),int(input("请输入结束值(整数):")) )x1=min(x)x2=max(x)for n in range(x1,x2+1): for i in range(2,n-1): if n % 阅读全文
posted @ 2020-03-25 21:44 幻雪追梦 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 如下所示: import xlrd import pandas as pd from pandas import DataFrame DATA_DIR = 'D:/' excel_name = '%s2017.xls' % DATA_DIR wb = xlrd.open_workbook(excel 阅读全文
posted @ 2020-03-20 21:41 幻雪追梦 阅读(5422) 评论(0) 推荐(0) 编辑
摘要: 1、数据库连接失败 a、下载msql8.0.16驱动,放到FineReport安装目录:webapps\webroot\WEB-INF\lib\下 b、自定义连接 数据库:others 驱动器:com.mysql.cj.jdbc.Driver URL:jdbc:mysql://localhost:3 阅读全文
posted @ 2020-01-09 15:02 幻雪追梦 阅读(504) 评论(0) 推荐(0) 编辑
摘要: 截取第一个符号前的字符串 --mysql substring_index( i.`code`,'.',1); substring_index( 字段,特定字符,第几次出现) --oracle substr('AAA-BBB',1,instr('AAA-BBB','-',-1)-1) 阅读全文
posted @ 2020-01-07 19:14 幻雪追梦 阅读(22612) 评论(0) 推荐(0) 编辑