会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
PythonNew_Mr.Wang
CnBlogs
Home
New Post
Contact
Admin
Subscription
上一页
1
2
3
4
5
6
···
22
下一页
2024年1月26日
【docker-compose】Django不分离项目 + SSL部署
文件/文件夹 - 映射 # django在处理数据库或者媒体文件持久时需要用到 # nginx在读取媒体文件的时候需要用到 1: 移动静态文件(static media db.sqlite3等) 到定义的宿主机路径: /usr/graduation下 -- /usr/graduation/stati
Read More
posted @ 2024-01-26 16:38 PythonNew_Mr.Wang
Views(77)
Comments(0)
Diggs(0)
2024年1月18日
【Django】通用分块上传
通用分块上传文件 import os # 通用路径分块上传 def piecemeal_public_load(path, original_md5_hash, chunk_index, upload_file, chunk_total, file_Name): """ path: 存放路径(med
Read More
posted @ 2024-01-18 11:00 PythonNew_Mr.Wang
Views(128)
Comments(0)
Diggs(0)
【Python小随笔】获取路径的所有文件夹信息
获取文件夹下的所有文件名,文件大小,更新时间 import os import datetime def get_files_info(folder_path): files_info = [] # 获取起始路径 base_path = os.path.abspath(folder_path) #
Read More
posted @ 2024-01-18 10:55 PythonNew_Mr.Wang
Views(59)
Comments(0)
Diggs(0)
【Python小随笔】解压压缩包(处理中文乱码问题)
支持中文编码 import os import shutil import tarfile import zipfile import gzip # 解压压缩包 def support_gbk(zip_file): """ 支持中文编码 """ name_to_info = zip_file.Nam
Read More
posted @ 2024-01-18 10:53 PythonNew_Mr.Wang
Views(521)
Comments(0)
Diggs(0)
2023年12月18日
【机器学习】OpenCV人脸识别
OpenCv 基础函数 # 读取图片 image = cv2.imread("test01.jpg") # 转灰度 gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) # 修改尺寸 resize_image = cv2.resize(image,
Read More
posted @ 2023-12-18 10:34 PythonNew_Mr.Wang
Views(162)
Comments(1)
Diggs(0)
2023年12月14日
【机器学习】算法作用与依赖库合集
算法与库 1. 决策树: - 库: from sklearn.tree import DecisionTreeClassifier(分类树) from sklearn.tree import DecisionTreeRegressor(回归树) - 计算场景:分类和回归问题 2. 逻辑回归: - 库
Read More
posted @ 2023-12-14 17:17 PythonNew_Mr.Wang
Views(76)
Comments(0)
Diggs(0)
2023年12月13日
【Python小随笔】 Grpc协议的使用
协议 gRPC(Google Remote Procedure Call)是一种高性能、开源的远程过程调用(RPC)框架,由Google开发并开源。它基于HTTP/2协议进行通信,使用Protocol Buffers(protobuf)作为接口定义语言(IDL)。 gRPC提供了跨平台、跨语言的服务
Read More
posted @ 2023-12-13 13:59 PythonNew_Mr.Wang
Views(144)
Comments(0)
Diggs(0)
2023年12月8日
【机器学习】Django用户,评分物品的推荐
表设计 # 用户表 class UserInfo(models.Model): username = models.CharField(max_length=32,unique=True,verbose_name="用户名") password = models.CharField(max_leng
Read More
posted @ 2023-12-08 10:55 PythonNew_Mr.Wang
Views(75)
Comments(0)
Diggs(0)
2023年11月20日
【Docker-compose】django + mysql + nginx
Django部署 Django Dockerfile FROM python:3.9 ENV PYTHONDONTWRITEBYTECODE 1 ENV PYTHONUNBUFFERED 1 WORKDIR /app COPY . /app/XXXXX/ WORKDIR /app/XXXXX/ RU
Read More
posted @ 2023-11-20 15:57 PythonNew_Mr.Wang
Views(74)
Comments(0)
Diggs(0)
2023年11月16日
【literature】引入
该文被密码保护。
Read More
posted @ 2023-11-16 17:23 PythonNew_Mr.Wang
Views(0)
Comments(0)
Diggs(0)
上一页
1
2
3
4
5
6
···
22
下一页
公告