上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1.创建项目 在终端进入路径D:\Python\Python36\Lib\site-packages\django\bin,创建项目 python3 django-admin startproject mysite02 2.创建应用 python3 manage.py startapp book 测 阅读全文
posted @ 2021-04-26 10:16 bellin124 阅读(62) 评论(0) 推荐(0)
摘要: Git的安装 Git版本控制系统是一个分布式的系统,是用来保存工程源代码历史状态的命令行工具。 官网下载地址:https://git-scm.com/download 网上有很多Git的安装教程 安装完成后,还需要最后一步设置,在命令行输入: $ git config --global user.n 阅读全文
posted @ 2021-04-20 09:32 bellin124 阅读(43) 评论(0) 推荐(0)
摘要: Django到底是什么? Django是一个可以使Web开发工作愉快并且高效的Web开发框架。使用Django,使你能够以最小的代价构建和维护高质量的Web应用。 Python Django的安装 首先,在Django官网上下载适合自己Python的Django版本,我安装的Python3.3,选择 阅读全文
posted @ 2021-04-07 10:27 bellin124 阅读(109) 评论(0) 推荐(0)
摘要: CBool,CByte,CCur,CDate,CDbl,Chr ,CInt ,CLng 阅读全文
posted @ 2021-04-02 15:37 bellin124 阅读(216) 评论(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 阅读(7662) 评论(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 阅读(1069) 评论(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 阅读(1339) 评论(0) 推荐(0)
摘要: 安装多个python时为了区分和使用不同版本的python,环境变量添加ok后,需要额外配置如下:进入python33 安装目录,复制python.exe 注意是复制,同文件夹下粘贴重命名为python33.exe效果如下: 阅读全文
posted @ 2021-03-24 16:30 bellin124 阅读(104) 评论(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 阅读(622) 评论(0) 推荐(0)
摘要: 在服务器配置好Python开发环境,进行数据库连接测试时发现,程序运行报错: cx_Oracle.DatabaseError:ORA-12154:TNS:无法解析指定的连接标识符 分析:在我本机电脑测试数据库连接正常,服务器有问题,服务器的数据库使用正常,任务计划也正常运行 进行tnsping Or 阅读全文
posted @ 2021-03-18 10:10 bellin124 阅读(759) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页