码迷,mamicode.com
首页 >  
搜索关键字:排序 python    ( 180003个结果)
Zookeeper简介和安装使用
为什么用Zookeeper 官方地址:https://zookeeper.apache.org/doc/current/zookeeperOver.html redis不能保证实时一致性和强一致性(最终一致性) ZooKeeper实施对高性能,高可用性,严格排序的访问给予了高度重视 ZooKeepe ...
分类:其他好文   时间:2021-03-03 11:54:16    阅读次数:0
Python模块简介
模块 整形 浮点型 字符串 列表 字典 集合 元组 布尔值 collection模块 # namedtuple:具名元组 from collections import namedtuple # 导入模块方式 point = namedtuple('坐标',['x','y']) # 关键字named ...
分类:编程语言   时间:2021-03-03 11:51:10    阅读次数:0
python 3 解决 ERROR: Could not find a version that satisfies the requirement xxx 的问题
问题:pyhton 3安装module报错ERROR: Could not find a version that satisfies the requirement config.paths % pip install config.paths ERROR: Could not find a ve ...
分类:编程语言   时间:2021-03-03 11:48:53    阅读次数:0
[Python] ValueError: Unknown resampling filter
在使用Image模块的时候,出现一个错误。 ValueError: Unknown resampling filter (50). Use Image.NEAREST (0), Image.LANCZOS (1), Image.BILINEAR (2), Image.BICUBIC (3), Ima ...
分类:编程语言   时间:2021-03-03 11:46:51    阅读次数:0
mysql 字符串先按照长度排序再按照ASCII码排序
方法一:先按照长度排序再按照ASCII码排序 select display_name from desktop order by display_name desc, length(display_name) desc; 方法二:向前/左用空格补齐32位后再排序 select display_nam ...
分类:数据库   时间:2021-03-02 12:41:10    阅读次数:0
python执行sql语句里字符串格式化是否添加单引号的两种情况
1 1 import pymysql 2 2 3 3 db = pymysql.connect(host='localhost', user='root', password='123456', database='jddj',port=3306) 4 4 cursor = db.cursor() ...
分类:数据库   时间:2021-03-02 12:38:55    阅读次数:0
Pytest Pytest源码分析
Pytest源码分析 By:授客 QQ:1033553122 测试环境 pytest 5.4.3 测试脚本mytest.py #!/usr/bin/env python # -*- coding:utf-8 -*- import pytest def test_func(): # test开头的测试 ...
分类:其他好文   时间:2021-03-02 12:31:05    阅读次数:0
mysql数据批量写入
今天实现数据批量插入, 看了https://blog.csdn.net/weixin_42796152/article/details/107931768 《基于python,pandas,pymysql 将数据批量高效写入mysql数据库(保证可以用的那种)》的程序和自己编写的 insertMan ...
分类:数据库   时间:2021-03-02 12:29:40    阅读次数:0
python调包——hashlib加密
python调包——hashlib加密 #加密 md5 sha1 sha256 sha512 import hashlib msg ="hello world" md5 = hashlib.md5(msg.encode('utf-8'))#之所以选择用utf-8对msg进行编码,是因为考虑到了msg ...
分类:编程语言   时间:2021-03-02 12:27:58    阅读次数:0
快速排序
挖坑填数方 从数列中挑出一个元素,称为 "基准"(pivot); 重新排序数列,所有元素比基准值小的摆放在基准前面,所有元素比基准值大的摆在基准的后面(相同的数可以到任一边)。在这个分区退出之后,该基准就处于数列的中间位置。这个称为分区(partition)操作; 递归地(recursive)把小于 ...
分类:编程语言   时间:2021-03-02 12:25:49    阅读次数:0
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!