logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

go_struct实现继承

package mainimport ("fmt")type info struct {name stringage int}// 继承 infotype binfo struct {infosexstring}func (info *info)Like(like_list ...string) string{likes:=""for _ ,like := range like_list{like

Django_外键查询|反向查询|related_name

主表# 分类class Category(models.Model):name = models.CharField(max_length=100, verbose_name='归档')# 返回对象本身的字段,而不是QuerySet[]def __str__(self):return self.nameclass Meta:...

python解析pdf文件_抽img_text(pymupdf)

pymupdf官方文档:https://pymupdf.readthedocs.io/en/latest/textpage.html#TextPage.extractDICT代码:# 证书留学背景工作时间import base64import jsonimport osimport reimport xlwtbase_211 = ['北京理工大学', '北京航空航天大学', '北京化工大学', '

goframe框架CLI dao命令

goframe2.0+文档数据库创建mysql用户(% 可远程登录)CREATE USER 'test'@'%' IDENTIFIED BY 'test';给用户加权限grant all privileges on *.* to test@'%' identified by 'test';flush privileges;修改密码SET PASSWORD FOR 'test'@'localhost

#golang
python操作web3_API--以太坊

文档:https://web3py.readthedocs.io/en/stable/quickstart.html安装web3(base) appledeMac-mini-3:Quantification apple$ pipinstallweb3Collecting web3Using cached https://files.pythonhosted.org/packag...

golang wkhtmltopdf HTML转PDF

【代码】golang wkhtmltopdf HTML转PDF。

#golang#html
python调阿里OCR_增值税发票,定额发票,混贴发票,表格_识别,处理数据写入excel

1.增值税发票识别:import osimport shutilimport sysimport urllib.requestimport urllib.parseimport jsonimport timeimport base64import openpyxlimport xlwtimport pandasaspd# 增值税发票识别/OCR文字识别def posturl(appcode,fil

docker安装mariadb并在本地持久化数据

安装mariadb查找hub仓库的mariadb镜像dockersearchmariadbNAMEDESCRIPTIONSTARSOFFICIALAUTOMATEDmariadb...

Python切割音频文件

第三方模块:pydubfrom pydub import AudioSegmentfrom pydub.utils import make_chunks##blues文件30saudio = AudioSegment.from_file("blues.00000.wav", "wav")size = 10000##切割的毫秒数chunks = make_chunks(audi...

python异步装饰器

def calc_time(func):@wraps(func)async def wrapper(*args, **kwargs):start = time.process_time()r = await func(*args, **kwargs)end = time.process_time()logging.info(’{}.{} : {}’.format(func.module, func

    共 17 条
  • 1
  • 2
  • 请选择