返回总目录页

随笔分类 -  Python

1 2 3 4 5 ··· 7 下一页
Python编程
该文被密码保护。
posted @ 2024-09-09 10:24 马昌伟 阅读(0) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2024-09-05 10:15 马昌伟 阅读(1) 评论(0) 推荐(0)
摘要:python api使用 实例及工作原理解析 指定target 函数,命令等等,就可以可以了。 [root@mcw01 ~]# python Python 2.7.5 (default, Aug 4 2017, 00:39:18) [GCC 4.8.5 20150623 (Red Hat 4.8.5 阅读全文
posted @ 2024-01-27 17:18 马昌伟 阅读(41) 评论(0) 推荐(0)
摘要:参考:https://cloud.tencent.com/document/product/494/7244 pip install -i https://mirrors.tencent.com/pypi/simple/ --upgrade tencentcloud-sdk-python cred有 阅读全文
posted @ 2023-12-21 22:45 马昌伟 阅读(44) 评论(0) 推荐(0)
摘要:调用方法 参考地址 https://github.com/openstack/openstacksdk 注意事项 1、需要安装openstacksdk。我这里装的好像是1.5版本的。opentask接口是v3版本的 2、clouds.yaml配置 2.1、openstack region list 阅读全文
posted @ 2023-12-18 12:52 马昌伟 阅读(351) 评论(0) 推荐(0)
摘要:slb调用 环境包安装 pip install alibabacloud_credentials --trusted-host mirrors.aliyun.com -i http://mirrors.aliyun.com/pypi/simple/ pip install alibabacloud_ 阅读全文
posted @ 2023-12-01 10:15 马昌伟 阅读(52) 评论(0) 推荐(0)
摘要:Selenium本身并不直接支持滚动截图,但是你可以通过编程方式实现滚动截图。下面是一个Python的例子,使用Selenium和PIL库实现滚动截图: from selenium import webdriver from PIL import Image import time # 初始化浏览器 阅读全文
posted @ 2023-09-21 11:10 马昌伟 阅读(493) 评论(0) 推荐(0)
摘要:rabbitmq安装部署 RabbitMq生产者消费者模型 生产者(producter) 队列消息的产生者,复制生产消息,并将消息传入队列生产者代码: import pika import json credentials = pika.PlainCredentials('admin','admin 阅读全文
posted @ 2023-06-25 13:11 马昌伟 阅读(406) 评论(0) 推荐(0)
摘要:软硬件环境 windows 11 64bits python 3.6 tenacity 简介 在实际应用中,经常会碰到在web请求时,因为网络的不稳定,会有请求超时的问题,这时候,一般都是自己去实现重试请求的逻辑,直到得到响应或者超时。虽然这样的逻辑并不复杂,但是代码写起来却不那么优雅,不那么pyt 阅读全文
posted @ 2023-05-24 16:46 马昌伟 阅读(203) 评论(0) 推荐(0)
摘要:#pyttsx3文字转语音 import pyttsx3 engine2 = pyttsx3.init() while True: content = input('请输入播放内容:') engine2.say(content) engine2.runAndWait() pip3 install p 阅读全文
posted @ 2023-04-15 22:54 马昌伟 阅读(605) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2023-03-12 11:42 马昌伟 阅读(1) 评论(0) 推荐(0)
该文被密码保护。
posted @ 2023-02-26 12:35 马昌伟 阅读(1) 评论(0) 推荐(0)
摘要:原文:https://www.bbsmax.com/A/gVdnwBZXzW/ Celery对象 核心的对象就是Celery了,初始化方法: class Celery(object): def __init__(self, main=None, loader=None, backend=None, 阅读全文
posted @ 2023-02-24 23:24 马昌伟 阅读(96) 评论(0) 推荐(0)
摘要:13-flask博客项目之restful api详解1-概念 13-flask博客项目之restful api详解1-概念 Flask-RESTful学习网站 英文:https://flask-restful.readthedocs.io/en/latest/ 中文:http://www.pytho 阅读全文
posted @ 2022-12-18 21:28 马昌伟 阅读(650) 评论(1) 推荐(2)
摘要:一 传统的开发模式 前后端分类概念 前端只需要独立编写客户端代码,后端也只需要独立编写服务端代码提供数据接口即可前端通过AJAX请求来访问后端的数据接口,将Model展示到View中即可 前后端开发者只需要提前约定好接口文档(URL、参数、数据类型…),然后分别独立开发即可前端可以造假数据进行测试, 阅读全文
posted @ 2022-12-16 22:44 马昌伟 阅读(267) 评论(0) 推荐(0)
摘要:案例 官网地址: https://python-docx.readthedocs.io/en/latest/ pip install python-docx from docx import Document from docx.shared import Inches document = Doc 阅读全文
posted @ 2022-12-16 22:30 马昌伟 阅读(2958) 评论(0) 推荐(2)
摘要:1、基本使用 配置logging基本的设置,然后在控制台输出日志, import logging logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(name)s - %(levelname)s - %(message)s' 阅读全文
posted @ 2022-12-15 23:09 马昌伟 阅读(613) 评论(0) 推荐(1)
摘要:查看当前的博客发表情况 截图一张立马粘贴进来 点击发表,显示数据太长 不断撤退回到刚刚页面 删除大图,换成小图,上传方式 点击发表可以成功发表 数据库中查看,是把图片生成这种编码后字符串方式存储的了,肯定每个图片占了大量空间 查看当前的富文本设置 按照中文网上传 http://tinymce.ax- 阅读全文
posted @ 2022-12-14 21:29 马昌伟 阅读(2669) 评论(0) 推荐(1)
摘要:https://flask-wtf.readthedocs.io/en/stable/# https://wtforms.readthedocs.io/en/2.3.x/ 介绍: wtformflask-wtf:集成了wtform,csrf的保护和文件上传功能,图形验证码。 wtform flask 阅读全文
posted @ 2022-12-12 16:58 马昌伟 阅读(450) 评论(0) 推荐(0)
摘要:centos7 编译安装python3.7.1 安装步骤 centos7自带python2,由于执行yum需要python2,所以即使安装了python3也不能删除python21.安装依赖包yum -y groupinstall "Development tools"yum -y install 阅读全文
posted @ 2022-12-08 15:56 马昌伟 阅读(118) 评论(0) 推荐(0)

1 2 3 4 5 ··· 7 下一页
博主链接地址:https://www.cnblogs.com/machangwei-8/
点击右上角即可分享
微信分享提示