dawn-liu

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 ··· 17 下一页

2019年11月19日

摘要: import chardet a=b'\xe4\xbd\xa0\xe5\xa5\xbd\xef\xbc\x8c\xe4\xb8\x96\xe7\x95\x8c\xe3\x80\x82'print(chardet.detect(a)) # {'encoding': 'utf-8', 'confiden 阅读全文
posted @ 2019-11-19 14:31 dawn-liu 阅读(414) 评论(0) 推荐(0) 编辑

2019年11月4日

摘要: 一 安装模块pymongo 二 创建一个MongoClient 三获取数据库 四 获取集合 五获取单个文档 六获取所有文档 阅读全文
posted @ 2019-11-04 16:30 dawn-liu 阅读(2139) 评论(0) 推荐(0) 编辑

2019年10月28日

摘要: ruby语法之哈希 =》相当于python的字典 ruby语法之数组 =》相当于python的列表 举例: gitaly= Hash.new #建立新Hash类型 gitaly['first']="myfirst" gitaly['storage'] = [ { 'name' => 'default 阅读全文
posted @ 2019-10-28 16:13 dawn-liu 阅读(594) 评论(0) 推荐(0) 编辑

2019年10月10日

摘要: postgres=# select * from pg_stat_user_tables where relname = 'test'; -[ RECORD 1 ] + relid | 23400 schemaname | public relname | test seq_scan | 12 se 阅读全文
posted @ 2019-10-10 10:56 dawn-liu 阅读(1598) 评论(0) 推荐(0) 编辑

2019年10月9日

摘要: 取一万个随机数,插入数据库 阅读全文
posted @ 2019-10-09 18:25 dawn-liu 阅读(605) 评论(0) 推荐(0) 编辑

摘要: 数据中往往会出现一些敏感字段,例如电话,邮箱等,这时候有需求进行加密保存 目前可以实现的方式有两种 方式一:这种方法,aes的加密方法不支持aes-192,不支持aes-256 #使用encrypt加解密 #加密保存 insert into test2(username,email) values( 阅读全文
posted @ 2019-10-09 18:22 dawn-liu 阅读(1298) 评论(0) 推荐(0) 编辑

摘要: 远程登陆 psql -h 主机 -U 用户 -p端口 -W -d 数据库 #-W表示密码,例如:psql -h 192.168.137.3 -U postgres -p 5432 -W -d postgres 远程执行命令 psql -h 192.168.137.3 -p 5432 postgres 阅读全文
posted @ 2019-10-09 18:13 dawn-liu 阅读(414) 评论(0) 推荐(0) 编辑

摘要: 安装以及启动 yum install readline-devel tar xf postgresql-11.1.tar.gz cd postgresql-11.1 ./configure --prefix=/data/postgresqlmake && make install # useradd 阅读全文
posted @ 2019-10-09 17:57 dawn-liu 阅读(1860) 评论(0) 推荐(0) 编辑

2019年9月18日

摘要: pipeline{ agent any environment{ //定义全局变量 is_smoke = true full_test= false } stages{ stage("first") { steps { script { println "test1......" full_test 阅读全文
posted @ 2019-09-18 14:03 dawn-liu 阅读(587) 评论(0) 推荐(0) 编辑

2019年9月17日

摘要: 一 在项目中有多个变量需要用户去填写,根据这些变量才能对项目进行构建, 这样的话,我们可以将这些变量以json的格式写入文件,每个人可以放入自己的文件里面 构建的时候提供文件的路径就可以了 下面一个例子: 首先我们需要用户提供文件路径,配置: 然后编写pipeline语法: import hudso 阅读全文
posted @ 2019-09-17 14:04 dawn-liu 阅读(425) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 17 下一页