会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
lxd670
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
2023年6月20日
subprocess模块
摘要: # subprocess说明 ```cmd subprocess.call()为python3.5以前版本使用(call已经被run取代了) subprocess.run()此方法为python3.5版本后的推荐方法,可以获取执行结果、返回内容等一些常用的信息 ``` ## 1.run用法 ###
阅读全文
posted @ 2023-06-20 16:31 lxd670
阅读(157)
评论(0)
推荐(0)
2023年6月19日
fcntl文件枷锁模块
摘要: # fcntl模块 本模块基于文件描述符来进行文件控制和 I/O 控制。它是 Unix 系统调用 `fcntl()` 和 `ioctl()` 的接口。关于这些调用的完整描述,请参阅 Unix 手册的 *fcntl(2)* 和 *ioctl(2)* 页面。 ## flock介绍 ```cmd fcnt
阅读全文
posted @ 2023-06-19 16:20 lxd670
阅读(88)
评论(0)
推荐(0)
2023年3月23日
python排序自定义版本号
摘要: # 1.LooseVersion版本排序 ### 1.1 格式 ```python # 合法格式 re.compile(r'(\d+ | [a-z]+ | \.)', re.VERBOSE) ``` ### 1.2 成功 ```python from distutils.version import
阅读全文
posted @ 2023-03-23 14:56 lxd670
阅读(182)
评论(0)
推荐(0)
查看表结构
摘要: 查看数据库表结构 SELECT HG_DUMP_SCRIPT('schema_name.table_name');
阅读全文
posted @ 2023-03-23 09:48 lxd670
阅读(134)
评论(0)
推荐(0)
import原理
摘要: 1.模块(Module)和包(Package) 1.1 理解模块(Module) 理解为是一个py文件 module是组织单位,它自己独立构成一个命名空间,它本身是一个Python object 在Python object里面,还可以有很多其他的Python object 实际应用中, modul
阅读全文
posted @ 2023-03-23 00:05 lxd670
阅读(103)
评论(0)
推荐(1)
2023年3月7日
test
摘要: 1.Git设置 1-1 生成一个SSH key 在~/.ssh目录下会生成id_rsa和id_rsa.pub文件 把id_rsa.pub的内容放在github或者gitlab上 ssh-keygen -t rsa -C "your_email@example.com" //填写自己的邮箱 代码参
阅读全文
posted @ 2023-03-07 10:08 lxd670
阅读(12)
评论(0)
推荐(0)
2023年2月23日
SCHEMA
摘要: 查看当前Schema select current_schema(); 切换Schema set search_path to [schema_name]; 查看所有Schema \dn \dnS == SELECT nspname FROM pg_namespace;
阅读全文
posted @ 2023-02-23 17:09 lxd670
阅读(75)
评论(0)
推荐(0)
删除列
摘要: hologres删除列 删除列目前还是灰度测试阶段,需要在sql前加上set hg_experimental_enable_drop_column =on; SELECT * FROM public.aaa; -- 不加这行会报错 set hg_experimental_enable_drop_co
阅读全文
posted @ 2023-02-23 17:04 lxd670
阅读(91)
评论(0)
推荐(0)
添加字段
摘要: hologres添加字段 不能直接修改表结构 -- test1表 CREATE TABLE test1 ( id int ); -- test2表 CREATE TABLE test2 ( id int, a_dict jsonb, b_dict text ); -- 把test1表内容复制到tes
阅读全文
posted @ 2023-02-23 16:55 lxd670
阅读(139)
评论(0)
推荐(0)
内容都在下级目录中
摘要: ##### [内容都在下级目录中](https://www.cnblogs.com/lxd670/category/2278524.html) 
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
12
下一页
公告