摘要: 阅读全文
posted @ 2022-06-20 10:58 彬彬有礼丶林 阅读(35) 评论(0) 推荐(0)
摘要: 1.如何安装 python python 解释器官网下载太慢,去淘宝镜像下载 https://npm.taobao.org/mirrors/python/ 2.pip 修改为国内镜像源 pip下载慢,修改为国内镜像源 直接运行下面Python代码,在cmd里输入:pip config list 可以 阅读全文
posted @ 2022-05-29 13:30 彬彬有礼丶林 阅读(2106) 评论(0) 推荐(0)
摘要: # 注意:python环境必须在2.7以上才能支持安装该工具 # pip install auto-py-to-exe # 使用 该命令 auto-py-to-exe 启动工具 阅读全文
posted @ 2022-05-24 17:47 彬彬有礼丶林 阅读(198) 评论(0) 推荐(0)
摘要: 静态文件 static 下载 import pandas as pd # from pandasql import sqldf # 用 SQL 语句操作 panda 模块 from pandasql import * # 用 SQL 语句操作 panda 模块 import os # 处理文件模块 阅读全文
posted @ 2022-05-24 14:50 彬彬有礼丶林 阅读(286) 评论(0) 推荐(0)
摘要: import os '''遍历打印指定文件夹下所有的文件名称 dirPath : 指定遍历的文件夹路径 ''' def listFiles(dirPath): # 准备一个空列表,用来存储遍历数据 fileList = [] fileName = [] ''' os.walk(dirPath) :走 阅读全文
posted @ 2022-05-24 14:49 彬彬有礼丶林 阅读(1314) 评论(0) 推荐(0)
摘要: 打包成一个 exe 文件 # 首先安装 pyinstaller 库 pip install pyinstaller # 在项目根目录路按住 shift 右键选择 在此处打开 powershell 窗口 # -F 生成单一的 exe 文件 # -p 有些需要手动添加包的位置(dir1,dir2)多个地 阅读全文
posted @ 2022-05-23 18:35 彬彬有礼丶林 阅读(1934) 评论(0) 推荐(0)
摘要: Python生成随机验证码 Python生成随机验证码,需要使用PIL模块. 安装: ? 1 pip3 install pillow 基本使用 1. 创建图片 ? 1 2 3 4 5 6 7 8 9 from PIL import Image img = Image.new(mode='RGB', 阅读全文
posted @ 2022-05-19 12:58 彬彬有礼丶林 阅读(204) 评论(0) 推荐(0)
摘要: 1、盒模型分类 标准盒模型(W3C)(现代浏览器采用的默认盒模型) IE 盒模型(怪异) 相同点:都有content、padding、border、margin 不同点:标准盒模型实际大小:width+padding+border+margin 怪异盒模型:width包含padding和border 阅读全文
posted @ 2020-09-16 17:37 彬彬有礼丶林 阅读(162) 评论(0) 推荐(0)
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv 阅读全文
posted @ 2020-09-02 17:04 彬彬有礼丶林 阅读(271) 评论(0) 推荐(0)
摘要: -- 数据的准备 -- 创建一个数据库 create database python_test charset=utf8; -- 使用一个数据库 use python_test; -- 显示使用的当前数据是哪个? select database(); -- 创建一个数据表 -- students表 阅读全文
posted @ 2020-09-02 17:02 彬彬有礼丶林 阅读(143) 评论(0) 推荐(0)