11 2021 档案
摘要:fileds, 这个是一个很简单的东西 里面有对字符串,整型,浮点型,List,等等吧, 如何判断 equal range length oneof 等等吧自己去看源码吧
阅读全文
摘要:wget http://nginx.org/download/nginx-1.16.1.tar.gz /home/ws/nginx yum -y install wget 源码安装:配置 编译 安装 tar xf nginx-1.16.1.tar.gz ./configure --prefix=/u
阅读全文
摘要:#! /usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/11/12 15:44 """ 我们再写一遍这个算法; """ from icecream import ic import jieba import jieba.analys
阅读全文
摘要:from icecream import ic from collections import defaultdict texts = [ ["楚枫","楚月","爱"], ["修罗","楚枫"], ["楚月"] ] default_dict = defaultdict(int) for text
阅读全文
摘要:只有集合才可以交差并补, 记住那几个关键字 return 1/2 return (1/ 2) return 1/\ 2 还有算法,等我上传代码。
阅读全文
摘要:1.Flask get @app.route('/get',methods=["get"]) def get(): print(f"request.args{request.args}") return 'GET!' View Code 2.Flask post @app.route('/post'
阅读全文
摘要:1.字符串对齐:左对齐,右对齐,居中 # 第一个参数是一共占多少位,第二个参数默认是空格 #居中显示的话如果左右不对称,他会靠左 print("wusen".center(10,"-")) print("wusen".ljust(10,"-")) print("wusen".rjust(10,"-"
阅读全文
摘要:1安装:pip install python-Levenshtein;(但是会报错,你自己去下载这个包) 2.原理解析: “”“ 就是计算两个字符串之间的改动次数:改动包括(新增,修改,删除) (1-两个字符所有的改动次数 / 两个字符之和 ) = 近似比率 ”“” 3.如何使用: import L
阅读全文
摘要:import cv2import numpy as npfrom matplotlib import pyplot as pltfrom PIL import Imageimg_url = r'E://0.png'with open(img_url, 'rb') as f: a = f.read()
阅读全文
摘要:https://www.yiibai.com/git/git_log.html 经验: 单元测试,数据库sql 的值他不是字符串,你需要注意 用这个:当你git add以后想撤销就用这个 git reset HEAD benchmarks.rb 原理:只会删除缓存区文件,工作区文件不会改变git r
阅读全文