上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: CBool,CByte,CCur,CDate,CDbl,Chr ,CInt ,CLng 阅读全文
posted @ 2021-04-02 15:37 bellin124 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Python绘制双轴组合的关键在plt库的twinx()函数,具体流程: 1.先建立坐标系,然后绘制主坐标轴上的图表; 2.再调用plt.twinx()方法; 3.最后绘制次坐标轴图表。 import cx_Oracle import xlrd import xlwt import matplotl 阅读全文
posted @ 2021-04-02 14:58 bellin124 阅读(7127) 评论(2) 推荐(0) 编辑
摘要: python matplotlib 多簇柱状图: 统计机器人15天搬运量与机台产出对比,上下货方式为机器人+人工 import xlrd import matplotlib.pyplot as plt import numpy as np plt.rcParams['font.sans-serif' 阅读全文
posted @ 2021-04-02 14:04 bellin124 阅读(923) 评论(0) 推荐(0) 编辑
摘要: oracle中计算某月的天数: 程序中在to_date(参数,'mm')输入参数就可以了 select to_date('03','mm') from dual --输出 --2021/3/1 select add_months(to_date('202102', 'YYYYMM'),1)-to_d 阅读全文
posted @ 2021-04-02 13:22 bellin124 阅读(1142) 评论(0) 推荐(0) 编辑
摘要: 安装多个python时为了区分和使用不同版本的python,环境变量添加ok后,需要额外配置如下:进入python33 安装目录,复制python.exe 注意是复制,同文件夹下粘贴重命名为python33.exe效果如下: 阅读全文
posted @ 2021-03-24 16:30 bellin124 阅读(85) 评论(0) 推荐(0) 编辑
摘要: Python引入pandas报错ValueError: numpy.ufunc has the wrong size, try recompiling 原因:这是因为 Python 包的版本问题,例如安装了较旧版本的 Numpy,但安装了较新版本的 Pandas。 查看 Numpy版本:pip li 阅读全文
posted @ 2021-03-24 16:16 bellin124 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 在服务器配置好Python开发环境,进行数据库连接测试时发现,程序运行报错: cx_Oracle.DatabaseError:ORA-12154:TNS:无法解析指定的连接标识符 分析:在我本机电脑测试数据库连接正常,服务器有问题,服务器的数据库使用正常,任务计划也正常运行 进行tnsping Or 阅读全文
posted @ 2021-03-18 10:10 bellin124 阅读(624) 评论(0) 推荐(0) 编辑
摘要: python两个一维list列表合并,zip函数 阅读全文
posted @ 2021-03-18 09:38 bellin124 阅读(1359) 评论(0) 推荐(0) 编辑
摘要: CREATE INDEX 语句 CREATE INDEX 语句用于在表中创建索引。在不读取整个表的情况下,索引使数据库应用程序可以更快地查找数据。 更新一个包含索引的表需要比更新一个没有索引的表更多的时间,这是由于索引本身也需要更新。因此,理想的做法是仅仅在常常被搜索的列(以及表)上面创建索引。 在 阅读全文
posted @ 2021-03-12 15:30 bellin124 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 1、%s用法:打印字符串 name = "hello" name1 = "python" print("我的名字:%s %s"%(name,name1)) 2、%d用法:打印整数 name='hello' age = 18 print("%s %d"%(name,age)) 3、%f用法:打印浮点数 阅读全文
posted @ 2021-03-12 15:15 bellin124 阅读(45) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页