随笔分类 - Python
摘要:#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2022/3/31 23:00 @Author : @File :LinuxUtil.py @Version :1.0 @Function: pip install paramiko -
阅读全文
摘要:#!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2022/3/27 16:14 @Author : @File :PandasUtil.py @Version :1.0 @Function: """ import pandas as
阅读全文
摘要:https://cloud.tencent.com/developer/article/1576613
阅读全文
摘要:1、python调用C++ SDK的记录:https://blog.csdn.net/u014479551/article/details/1124767082、Python实例浅谈之三Python与C/C++相互调用:https://www.cnblogs.com/yanzi-meng/p/806
阅读全文
摘要:一、效果 二、代码 可直接复制进行调用(修改main里对应参数即可) #!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2022/2/11 11:05 @Author : @File :myemail.py @Version :1.0
阅读全文
摘要:1、效果 2、代码 2.1、服务端 #!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2022/1/27 10:15 @Author : @File :server.py @Version :1.0 @Function: """ imp
阅读全文
摘要:项目搬迁的时候,需要把当前的环境依赖包导出,然后到部署项目的服务器上安装依赖。 我们可以通过下面的命令执行,把依赖包导出到requirements.txt文件里。 生成depend.txt文件: pip freeze > depend.txt 安装requirements.txt依赖: pip in
阅读全文
摘要:import zipfile def read_zip(zip_file_path: str, unpack_path: str, ws_msg: WebSocketMsg): """ 解压ZIP文件 @param zip_file_path: ZIP文件路径(ex. E:\aaa\a.zip) @
阅读全文
摘要:一、后端 python、django(channels) 1.1、安装channels pip install channels pip install channels_redis 1.2、配置项目settings.py文件中的INSTALLED_APPS值 新增channels、项目主站名称 1
阅读全文
摘要:# coding=utf-8 import hashlib md = hashlib.md5() md.update('abcdef'.encode('utf-8')) print(md.hexdigest()) e80b5017098950fc58aad83c8c14978e
阅读全文
摘要:一、效果 二、前端代码 仅修改action即可(这是后端上传接口) <el-upload class="upload-demo" action="http://127.0.0.1:8549/file/upload/" :on-preview="handlePreview" :on-remove="h
阅读全文
摘要:https://www.cnblogs.com/zhuminghui/p/11699313.html
阅读全文
摘要:一、首字母排序 说明:有一个字符串列表 然后根据字符串的第一个字母 对这个字符串列表进行排序 #!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : @Author : @File : @Version : @Function: """ f
阅读全文
摘要:官网(JS):https://echarts.apache.org/zh/index.html 官网(Python):https://pyecharts.org/#/zh-cn/geography_charts?id=map%ef%bc%9a%e5%9c%b0%e5%9b%be 在Vue中使用ech
阅读全文
摘要:一、无返回值 #!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time : @Author : @File : @Version :1.0 @Function: """ # 定义接口 class InterfaceRoot(object): de
阅读全文
摘要:1、代码 直接调用 VersionControl.get_version() 即可返回本次版本号(上一次版本号+1) #!/usr/bin/env python # -*- coding: utf-8 -*- """ @Time :2021/10/28 19:07 @Author :维斯 @File
阅读全文
摘要:import datetime import time import pytz as pytz if __name__ == '__main__': tz = pytz.timezone('Asia/Shanghai') # 东八区 t = datetime.datetime.fromtimesta
阅读全文
摘要:import urllib.parse if __name__ == '__main__': str_ = '%E6%99%BA%E6%85%A7' print(urllib.parse.unquote(str_))
阅读全文
摘要:https://www.cnblogs.com/liulinghua90/p/9935642.html
阅读全文
摘要:1、https://www.cnblogs.com/liming19680104/p/11306923.html pip install python-docx
阅读全文