上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: String全部命令如下: set key value # 设置一个key的value值 get key # 获取key的value值 mset key1 value1 key2 value2 ... # 设置多个key和value,某个key已存在,则会覆盖 mget ke... 阅读全文
posted @ 2018-07-01 14:36 傲娇的草履虫 阅读(156) 评论(0) 推荐(0) 编辑
摘要: Redis简介 Redis 是一个开源(BSD许可)的,内存中的key-value数据结构存储系统,它可以用作数据库、缓存和消息中间件。 Redis具有丰富的数据结构类型。包括字符串(string), 哈希(hash), 列表(list), 集合(set), 有序集合(sorted set)。 Re 阅读全文
posted @ 2018-07-01 10:45 傲娇的草履虫 阅读(179) 评论(0) 推荐(0) 编辑
摘要: shutil模块提供了许多关于文件和文件夹的高级操作。 特别提供了支持文件复制和删除的功能。 阅读全文
posted @ 2018-06-29 21:15 傲娇的草履虫 阅读(312) 评论(0) 推荐(0) 编辑
摘要: ftplib是基于FTP协议实现的一个Python模块 阅读全文
posted @ 2018-06-28 17:25 傲娇的草履虫 阅读(1949) 评论(0) 推荐(0) 编辑
摘要: json和pickle都是Python对json格式数据进行序列化的模块 json: 用于字符串和python数据类型间进行转换pickle: 用于python特有的类型和python的数据类型间进行转换 不同的是json序列化出来的是通用格式,而pickle序列化出来的是只能用于Python的格式 阅读全文
posted @ 2018-06-28 17:11 傲娇的草履虫 阅读(175) 评论(0) 推荐(0) 编辑
摘要: Paramiko是基于SSHv2协议实现的一个Python模块,提供客户端和服务器的功能。Paramiko本身是一个围绕SSH网络概念的纯Python接口。 阅读全文
posted @ 2018-06-28 16:43 傲娇的草履虫 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 使用xlwt + xlrd + xlutils操作Excel表格 阅读全文
posted @ 2018-06-11 20:38 傲娇的草履虫 阅读(448) 评论(0) 推荐(0) 编辑
摘要: 使用Python的decode函数转码十六进制的字符串时,会出现UnicodeDecodeError: 'utf8' codec can't decode byte 0xba in position 3: invalid start byte的错误! 例如我需要转码十六进制字符串 '\xe8\xa7 阅读全文
posted @ 2018-06-07 09:50 傲娇的草履虫 阅读(1274) 评论(0) 推荐(0) 编辑
摘要: 当我们遇到类似于{‘a’:1, 'b':2, 'c':3}这种字符串时,想要把它转换成字典进行处理,可以使用以下几种方法: 1. Python自带的eval函数(不安全) 2.使用 ast 模块的 literal_eval 函数(安全) 3.使用 json 模块的 loads 函数 使字典有序 阅读全文
posted @ 2018-05-10 20:01 傲娇的草履虫 阅读(2498) 评论(0) 推荐(0) 编辑
摘要: 在使用robot framework的关键字Connect to Database Using Custom params连接Oracle数据库: 报错 ORA-12504: TNS:listener was not given the SERVICE_NAME in CONNECT_DATA 解决 阅读全文
posted @ 2018-03-16 09:08 傲娇的草履虫 阅读(7255) 评论(1) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页