上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 64 下一页
摘要: # encoding=utf8 #-*-coding:utf-8 -*- #pip install natsort import wave import os import time import natsort # infiles = ["你好_1.mp3", "不好_1.mp3"] # outf 阅读全文
posted @ 2023-03-09 09:26 大话人生 阅读(191) 评论(0) 推荐(0)
摘要: 1.安装依赖 pip install pyttsx3 pip install librosa pip install pydub 2.代码程序 # encoding=utf8 #-*-coding:utf-8 -*- ''' python将一段文字转为mp3音频文件 ''' #pip install 阅读全文
posted @ 2023-03-03 20:17 大话人生 阅读(406) 评论(0) 推荐(0)
摘要: 1.安装 pip install pdfplumber 2.代码 import pdfplumber as pb file_handle = open('out.txt', mode='w', encoding='utf-8') # 读取PDF文档 pdf = pb.open("1.pdf") # 阅读全文
posted @ 2023-03-02 21:41 大话人生 阅读(84) 评论(0) 推荐(0)
摘要: 1.安装 Python国内镜像地址名地址 global.index-url install.trusted-host阿里云 https://mirrors.aliyun.com/pypi/simple/ mirrors.aliyun.com清华大学 https://pypi.tuna.tsinghu 阅读全文
posted @ 2023-02-11 09:28 大话人生 阅读(35) 评论(0) 推荐(0)
摘要: import turtle import random import math # 初始化 turtle.setup(1280, 720) t = turtle.Pen() t.ht() # 颜色 colors = [] t_list = ["0", "1", "2", "3", "4", "5", 阅读全文
posted @ 2022-11-21 10:25 大话人生 阅读(54) 评论(0) 推荐(0)
摘要: import random from math import sin, cos, pi, log from tkinter import * CANVAS_WIDTH = 640 # 画布的宽 CANVAS_HEIGHT = 480 # 画布的高 CANVAS_CENTER_X = CANVAS_W 阅读全文
posted @ 2022-11-21 10:23 大话人生 阅读(165) 评论(0) 推荐(0)
摘要: 由于JSON中,标准语法中,不支持单引号,属性或者属性值,都必须是双引号括起来的 import json content = open("123.txt").read() print(content) content = content.replace("'", '"') #替换单引号为双引号 pr 阅读全文
posted @ 2022-08-23 17:06 大话人生 阅读(122) 评论(0) 推荐(0)
摘要: #筛选类型数据和创建日期大于2022年1月1日,根据shaixuanleixingandbiaoti.py修改 class ShaiXuanLeiXingAndBiaoTi: def __init__(self,file_name): self.file_name = file_name self. 阅读全文
posted @ 2022-08-23 12:06 大话人生 阅读(39) 评论(0) 推荐(0)
摘要: 1.pom.xml中添加依赖: <!--JWT配置依赖--> <dependency> <groupId>com.auth0</groupId> <artifactId>java-jwt</artifactId> <version>3.10.3</version> </dependency> <!- 阅读全文
posted @ 2022-08-23 10:52 大话人生 阅读(204) 评论(0) 推荐(0)
摘要: #筛选类型数据和创建日期大于2022年1月1日,根据shaixuanleixingandbiaoti.py修改 class ShaiXuanLeiXingAndBiaoTi: def __init__(self,file_name): self.file_name = file_name self. 阅读全文
posted @ 2022-08-23 07:46 大话人生 阅读(49) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 64 下一页