随笔分类 -  Python

摘要:Python3.11 Oracle19 解决 error: Microsoft Visual C++ 14.0 or greater is required. 阅读全文
posted @ 2024-12-13 15:13 bellin124 阅读(117) 评论(0) 推荐(0) 编辑
摘要:22个受欢迎的Python不同类型开源框架 记录: 一、Python Web框架 Django: Python Web应用开发框架链接:https://www.djangoproject.com/Django 应该是最出名的Python框架,GAE甚至Erlang都有框架受它影响。Django是走大 阅读全文
posted @ 2023-03-07 16:52 bellin124 阅读(151) 评论(0) 推荐(0) 编辑
摘要:安装django-redis和settings配置 阅读全文
posted @ 2021-10-26 09:13 bellin124 阅读(1170) 评论(0) 推荐(0) 编辑
摘要:实例:绘制机器人过去days天的UPtime Trend Chart趋势变化图, 对小于90%的数值显示,可以明显的看出近期各机器人的机况状态,重点关注较低的。 阅读全文
posted @ 2021-10-26 09:03 bellin124 阅读(206) 评论(0) 推荐(0) 编辑
摘要:django根据已有数据库表生成model类 阅读全文
posted @ 2021-05-21 14:23 bellin124 阅读(520) 评论(0) 推荐(0) 编辑
摘要:outlook发送是Python直接调用win32方式,调用程序outlook直接发送邮件 阅读全文
posted @ 2021-05-21 08:38 bellin124 阅读(986) 评论(0) 推荐(0) 编辑
摘要:1.使用布尔型数组进行数据过滤 2.构造ndarry 3.Matplotlib中图像元素 阅读全文
posted @ 2021-05-18 22:37 bellin124 阅读(188) 评论(0) 推荐(0) 编辑
摘要:学习目标: 熟悉数据分析的基本流程 初步掌握Numpy中数组与向量化操作 使用Matplotlib进行简单的数据可视化 一、数据分析的流程 1.明确任务:明确目的,确定思路。 2.数据收集:网络爬虫,公开数据集,客户数据。 3数据处理:数据清洗,数据规整。 4数据分析:数据统计,探索性数据分析(ED 阅读全文
posted @ 2021-05-18 16:54 bellin124 阅读(125) 评论(0) 推荐(0) 编辑
摘要:Django查询数据库操作详解(一) (biancheng.net) 阅读全文
posted @ 2021-05-17 21:59 bellin124 阅读(14) 评论(0) 推荐(0) 编辑
摘要: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 阅读(56) 评论(0) 推荐(0) 编辑
摘要:Git的安装 Git版本控制系统是一个分布式的系统,是用来保存工程源代码历史状态的命令行工具。 官网下载地址:https://git-scm.com/download 网上有很多Git的安装教程 安装完成后,还需要最后一步设置,在命令行输入: $ git config --global user.n 阅读全文
posted @ 2021-04-20 09:32 bellin124 阅读(40) 评论(0) 推荐(0) 编辑
摘要:Django到底是什么? Django是一个可以使Web开发工作愉快并且高效的Web开发框架。使用Django,使你能够以最小的代价构建和维护高质量的Web应用。 Python Django的安装 首先,在Django官网上下载适合自己Python的Django版本,我安装的Python3.3,选择 阅读全文
posted @ 2021-04-07 10:27 bellin124 阅读(90) 评论(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 阅读(7408) 评论(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 阅读(1005) 评论(0) 推荐(0) 编辑
摘要:安装多个python时为了区分和使用不同版本的python,环境变量添加ok后,需要额外配置如下:进入python33 安装目录,复制python.exe 注意是复制,同文件夹下粘贴重命名为python33.exe效果如下: 阅读全文
posted @ 2021-03-24 16:30 bellin124 阅读(98) 评论(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 阅读(473) 评论(0) 推荐(0) 编辑
摘要:python两个一维list列表合并,zip函数 阅读全文
posted @ 2021-03-18 09:38 bellin124 阅读(1558) 评论(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 阅读(49) 评论(0) 推荐(0) 编辑
摘要:Python程序中三个连续的双引号的作用 作用一:进行多行注释 我们都知道Python中注释是井号 #,但是如果你需要描述多行注释的时候,就需要每行都写一个 #,或者,你可以采用连续的三个双引号,如下: # 这是单行注释 """ 这是多行注释第一行 这是多行注释第二行 这是多行注释第三行 """ 作 阅读全文
posted @ 2021-03-05 16:03 bellin124 阅读(4673) 评论(0) 推荐(1) 编辑
摘要:一、xlsxwriter模块 用于向生成的excel表格插入数据、表格等,相较xlwt支持更多excel功能,100%兼容excel xlsx文件,支持excel2003,excel2007等版本,处理速度更快,支持大文件写入,不支持读取和修改excel文件。 安装:pip install xlsx 阅读全文
posted @ 2021-01-21 20:34 bellin124 阅读(250) 评论(0) 推荐(0) 编辑

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