会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
还有10天
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
10
11
12
13
14
15
16
17
18
···
31
下一页
2021年11月30日
marshmallow
摘要: fileds, 这个是一个很简单的东西 里面有对字符串,整型,浮点型,List,等等吧, 如何判断 equal range length oneof 等等吧自己去看源码吧
阅读全文
posted @ 2021-11-30 19:42 3ξ
阅读(123)
评论(0)
推荐(0)
2021年11月21日
nginx
摘要: 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
阅读全文
posted @ 2021-11-21 20:46 3ξ
阅读(37)
评论(0)
推荐(0)
2021年11月12日
文本相似度算法
摘要: #! /usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2021/11/12 15:44 """ 我们再写一遍这个算法; """ from icecream import ic import jieba import jieba.analys
阅读全文
posted @ 2021-11-12 16:27 3ξ
阅读(44)
评论(0)
推荐(0)
defaultdict初始化字典,封装起来用来,计数,计算词频
摘要: from icecream import ic from collections import defaultdict texts = [ ["楚枫","楚月","爱"], ["修罗","楚枫"], ["楚月"] ] default_dict = defaultdict(int) for text
阅读全文
posted @ 2021-11-12 16:01 3ξ
阅读(51)
评论(0)
推荐(0)
2021年11月11日
集合的交差并补,还有\用法, 还有四种文本相似度算法
摘要: 只有集合才可以交差并补, 记住那几个关键字 return 1/2 return (1/ 2) return 1/\ 2 还有算法,等我上传代码。
阅读全文
posted @ 2021-11-11 10:37 3ξ
阅读(78)
评论(0)
推荐(0)
2021年11月10日
Flask获取post,get参数,以及 爬虫 requests的get,post参数详解
摘要: 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'
阅读全文
posted @ 2021-11-10 15:52 3ξ
阅读(272)
评论(0)
推荐(0)
字符串
摘要: 1.字符串对齐:左对齐,右对齐,居中 # 第一个参数是一共占多少位,第二个参数默认是空格 #居中显示的话如果左右不对称,他会靠左 print("wusen".center(10,"-")) print("wusen".ljust(10,"-")) print("wusen".rjust(10,"-"
阅读全文
posted @ 2021-11-10 15:52 3ξ
阅读(60)
评论(0)
推荐(0)
2021年11月8日
NLP之距离算法Levenshtein
摘要: 1安装:pip install python-Levenshtein;(但是会报错,你自己去下载这个包) 2.原理解析: “”“ 就是计算两个字符串之间的改动次数:改动包括(新增,修改,删除) (1-两个字符所有的改动次数 / 两个字符之和 ) = 近似比率 ”“” 3.如何使用: import L
阅读全文
posted @ 2021-11-08 14:05 3ξ
阅读(122)
评论(0)
推荐(0)
2021年11月1日
明日比用
摘要: 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()
阅读全文
posted @ 2021-11-01 21:06 3ξ
阅读(41)
评论(0)
推荐(0)
代码管理工具之GIT:重新温习一下
摘要: https://www.yiibai.com/git/git_log.html 经验: 单元测试,数据库sql 的值他不是字符串,你需要注意 用这个:当你git add以后想撤销就用这个 git reset HEAD benchmarks.rb 原理:只会删除缓存区文件,工作区文件不会改变git r
阅读全文
posted @ 2021-11-01 15:01 3ξ
阅读(36)
评论(0)
推荐(0)
上一页
1
···
10
11
12
13
14
15
16
17
18
···
31
下一页
公告