随笔分类 -  Python

摘要:# -*- coding: utf-8 -*-# import math lines_dic = { "正常": [ [[0, 0], [1, 1], [2, 2], [3, 3]], [[0, 0], [1, 1], [1, 2], [3, 5]] ], "勾": [ [[0, 0], [1, 1 阅读全文
posted @ 2022-09-09 10:04 不能说的秘密 阅读(76) 评论(0) 推荐(0) 编辑
摘要:def convert(self, pose_list, output): data_list = self.parse_pose(pose_list) time_z_dic = {} font2 = {'family': 'Times New Roman', 'weight': 'normal', 阅读全文
posted @ 2022-09-08 18:22 不能说的秘密 阅读(23) 评论(0) 推荐(0) 编辑
摘要:import requests import shutil def download_file(url, local_filename): """ :param url: url连接 :param local_filename: 下载后保存文件名字 """ with requests.get(url 阅读全文
posted @ 2022-09-05 09:09 不能说的秘密 阅读(36) 评论(0) 推荐(0) 编辑
摘要:sudo apt update sudo apt install apt-transport-https ca-certificates curl software-properties-common curl -fsSL https://download.docker.com/linux/ubun 阅读全文
posted @ 2022-08-10 09:24 不能说的秘密 阅读(25) 评论(0) 推荐(0) 编辑
摘要:下载whl https://extras.wxpython.org/wxPython4/extras/linux/gtk3/ubuntu-18.04/ 从这个连接里下载对应的whl pip pip install wxPython-4.1.1-cp38-cp38-linux_x86_64.whl 缺 阅读全文
posted @ 2022-08-09 10:07 不能说的秘密 阅读(274) 评论(0) 推荐(0) 编辑
摘要:python 目前xlrd库已经更新到2.1.0+,2.1.0+版本得库无法操作xlsx文件,只能操作xls文件 需要安装低于1.2.0版本得xlrd库才可以,但是xlrd3可以可以支持xls和xlsx的读取,并且效率 上比openpyxl要快 # -*- coding: utf-8 -*-# # 阅读全文
posted @ 2022-05-11 13:39 不能说的秘密 阅读(888) 评论(0) 推荐(0) 编辑
摘要:https://www.ajihuo.com/ 阅读全文
posted @ 2022-04-29 10:57 不能说的秘密 阅读(100) 评论(0) 推荐(0) 编辑
摘要:计算面积,用面积的正负判断方向,如果面积是正,则是逆时针,面积是负则是顺时针。 在计算几何里,我们知道,△ABC的面积就是“向量AB”和“向量AC”两个向量叉积的绝对值的一半。其正负表示三角形顶点是在右手系还是左手系(面积是有向面积(有正负)), 负 则是左手系,反之,右手系。 需要注意的是在屏幕坐 阅读全文
posted @ 2022-04-24 09:56 不能说的秘密 阅读(799) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-# # # Name: test # Author: yunhgu # Date: 2022/4/13 14:00 # Description: # from PIL import ImageDraw, Image def getLinearEquati 阅读全文
posted @ 2022-04-13 15:26 不能说的秘密 阅读(408) 评论(0) 推荐(0) 编辑
摘要:官方介绍地址:https://pillow.readthedocs.io/en/stable/reference/index.html # -*- coding: utf-8 -*-# # # Name: Pillow测试用例 # Author: yunhgu # Date: 2022/4/13 9 阅读全文
posted @ 2022-04-13 13:47 不能说的秘密 阅读(435) 评论(0) 推荐(0) 编辑
摘要:https://registry.npmmirror.com/binary.html?path=python/ 阅读全文
posted @ 2022-04-06 17:17 不能说的秘密 阅读(487) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-# # # Name: 单链表测试 # Author: yunhgu # Date: 2022/3/10 15:48 # Description: # class Node(object): """链表的结点""" def __init__(self, 阅读全文
posted @ 2022-03-10 15:59 不能说的秘密 阅读(135) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-# # # Name: m3u8下载器 # Author: yunhgu # Date: 2022/3/4 9:35 # Description: # from concurrent.futures import ThreadPoolExecutor, 阅读全文
posted @ 2022-03-10 15:20 不能说的秘密 阅读(853) 评论(0) 推荐(0) 编辑
摘要:# -*- coding: utf-8 -*-# # # Name: 资源打包 # Author: yunhgu # Date: 2022/3/10 15:07 # Description: # import os import sys def resource_path(relative_path 阅读全文
posted @ 2022-03-10 15:14 不能说的秘密 阅读(186) 评论(0) 推荐(0) 编辑
摘要:numba 编译型语言和解释型语言 首先了解一下编译型语言和解释型语言(也经常叫脚本语言): 1、编译型语言,C、C++、Fortran、Pascal、Ada,由编译型语言编写的源程序需要经过编译,汇编和链接才能输出目标代码,然后由机器执行目标代码。目标代码是由机器指令组成,不能独立运行,因为源程序 阅读全文
posted @ 2022-03-10 10:34 不能说的秘密 阅读(142) 评论(0) 推荐(0) 编辑
摘要:def cv2_img_add_text(img, text, coordinate, text_color=(0, 255, 0), text_size=20): img = Image.fromarray(cv2.cvtColor(img, cv2.COLOR_BGR2RGB)) # 创建一个可 阅读全文
posted @ 2022-03-08 15:13 不能说的秘密 阅读(172) 评论(0) 推荐(0) 编辑
摘要:import os from json import load, dumps from pathlib import Path from traceback import format_exc from log_color.log_color import Logger from progress. 阅读全文
posted @ 2022-02-25 15:45 不能说的秘密 阅读(45) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示