靓仔      
    波澜   
  
时光荏苒,白驹过隙。且行且珍惜!!!   
摘要: 1 交朋友的标准是什么? - Question - 出世的智者,入世的强者, 或者正常而阳光的普通人。 - Answer - 2 有哪些可以令人清醒的句子? - Question - 你多学一样本事, 就少说一句求人的话。 - Answer - 3 做哪些事情可以提升生活品质? - Question 阅读全文
posted @ 2019-09-17 17:05 可惜啊。 阅读(336) 评论(0) 推荐(0) 编辑
摘要: PUT my_index/_settings { "index.mapping.total_fields.limit": 2000 } 此处设置为2000 最大索引 可以在可视化工具 比如kibana 来查看是否成功 成功如下: { "acknowledged" : true } 也可以再用 get 阅读全文
posted @ 2021-09-29 16:52 可惜啊。 阅读(2241) 评论(0) 推荐(0) 编辑
摘要: python 3.6安装 pycrypto 2.6.1 报错 ERROR: Failed building wheel for pycrypto 解决办法 : pycrypto-2.6.1-cp36-cp36m-win_amd64.whl ERROR: Command errored out wit 阅读全文
posted @ 2021-08-26 12:04 可惜啊。 阅读(2569) 评论(0) 推荐(0) 编辑
摘要: 本人想在网上 下载office 2019 没有百度网盘会员 只有约60kb/s,免费会员只有一分钟 (只想白嫖) (真香) 上图: 具体操作过程 这是 未点试用的 这是点了试用的 然后 骚操作来了 点开右下角网盘图标 关闭(一定要在试用的60未结束之前点关闭) 然后 竟然发现平均网速 达到了 2mb 阅读全文
posted @ 2020-11-18 17:12 可惜啊。 阅读(750) 评论(0) 推荐(0) 编辑
摘要: Django:表多对多查询、聚合分组、FQ查询、事务 https://www.cnblogs.com/xujunkai/p/11847553.html https://www.cnblogs.com/maojiang/p/9214021.html 脚本之家 python https://www.jb 阅读全文
posted @ 2020-05-14 11:48 可惜啊。 阅读(111) 评论(0) 推荐(0) 编辑
摘要: 小白 有了一个服务器, 当然是先换 yum源 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo yum clean all yum makecache 公司内部升级防火墙 网易 阅读全文
posted @ 2020-05-13 11:32 可惜啊。 阅读(5350) 评论(0) 推荐(0) 编辑
摘要: 一般操作 https://docs.djangoproject.com/en/3.0/ref/models/querysets/ 官网 文档 https://www.cnblogs.com/study-learning/p/9969486.html 必知必会13条 <1> all(): 查询所有结果 阅读全文
posted @ 2020-05-09 11:44 可惜啊。 阅读(373) 评论(0) 推荐(0) 编辑
摘要: result= Booking.objects.filter(xxxx,xxxx,xxxx) count :获取提取的数据的个数。如果想要知道总共有多少条数据,那么建议使用 count ,而不是使用 len(articles) 这种。因为 count 在底层是使用 select count(*) 来 阅读全文
posted @ 2020-05-09 10:50 可惜啊。 阅读(2287) 评论(0) 推荐(0) 编辑
摘要: python 去除 字符串的几种方法 !!! 你知道几种? 可以用来去除字符的函数有: strip(), replace(), re.sub(), strip() 去除首尾指定字符,不传参数为去除空格 >>> s = '/n 123456 /n' >>> s.strip('/n') ' 123456 阅读全文
posted @ 2020-05-07 13:51 可惜啊。 阅读(17005) 评论(0) 推荐(0) 编辑
摘要: try: xxxx except Exception as e: print(e) #此处返回的只是一个异常错误 import traceback try: xxxx except: traceback.print_exc() #可以加参数写成报错日志 traceback.print_exc(fil 阅读全文
posted @ 2020-04-30 10:50 可惜啊。 阅读(195) 评论(0) 推荐(0) 编辑
摘要: Python 输出百分比的两种方式 方式1:直接使用参数格式化:{:.2%} {:.2%}: 显示小数点后2位显示小数点后2位: >>> print('percent: {:.2%}'.format(42/50)) percent: 84.00% 不显示小数位:{:.0%},即,将2改为0:>>> 阅读全文
posted @ 2020-04-15 15:36 可惜啊。 阅读(1330) 评论(0) 推荐(0) 编辑