import sqlite3 class SqliteUtil(): def __init__(self, file): # 连接到 SQlite数据库 # 数据库文件是 api_test.s3db,不存在,则自动创建 self.conn = sqlite3.connect('api_test.s3 ...
分类:
数据库 时间:
2021-02-23 14:22:09
阅读次数:
0
目录 一、 docker安装 二、 教程学习 三、 实践操作 四、结果 一、 docker安装 windows安装教程:https://www.runoob.com/docker/windows-docker-install.html 安装docker遇到问题: 问题1: 解决方案: 1、 打开控制 ...
分类:
其他好文 时间:
2021-02-22 12:49:46
阅读次数:
0
在hive客户端建一张表比如bb 条件bb与abc表结构相同,abc有数据,把abc的数据导到bb里 hive -e是为了解决每次进入客户端的麻烦操作,使用了hive -e命令,可以在hive客户端外对客户端进行操作, 例如 hive -e "use aaa;select * from abc li ...
分类:
其他好文 时间:
2021-02-22 12:21:51
阅读次数:
0
OS模块 属于python中的内置模块,专门用来处理系统相关的操作 使用方法:直接使用导入使用 import OS 具体的使用方法如下: 1.文件路径的获取: py文件的地址 具体的实现过程: import os #获取当前文件的绝对路径 file_path=os.path.abspath(__fi ...
分类:
编程语言 时间:
2021-02-22 12:04:44
阅读次数:
0
git tag -a "obj-v1.1.4" -m "rows read" git push --follow-tags 未执行 git add 操作 git restore file_name、git checkout -- file_name 或者 git reset --hard HEAD ...
分类:
其他好文 时间:
2021-02-22 11:46:41
阅读次数:
0
[root@op-benchmark-216 ~]# cat /etc/dhcp/dhcpd.conf # dhcpd.conf # # Sample configuration file for ISC dhcpd # # option definitions common to all supp ...
分类:
其他好文 时间:
2021-02-20 12:34:38
阅读次数:
0
资源管理服务Placement 官方文档:https://docs.openstack.org/placement/train/install/install-rdo.html 1、创建数据库 MariaDB [(none)]> CREATE DATABASE placement; MariaDB ...
分类:
其他好文 时间:
2021-02-20 12:18:39
阅读次数:
0
一、服务器 1、安装haneWIN,使用管理员身份运行,进行注册 2、exports页面下进行edit exports file 3、编辑保存。 e:\nfs :共享文件夹路径 -public:公共权限 -name:nfs :显示名称 4、重启nfs服 5、挂载成功 二、客户端 1、控制面板》程序》 ...
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) 1. os.path.abspath(file)返回的是.py文件的绝对路径,也就是settings.py这个文件路径 2. os.path.dirname( ...
分类:
其他好文 时间:
2021-02-20 11:46:09
阅读次数:
0
译文 NAME objcopy - copy and translate object files 概要 objcopy [-F bfdname|--target=bfdname] [-I bfdname|--input-target=bfdname] [-O bfdname|--output-ta ...
分类:
其他好文 时间:
2021-02-20 11:43:56
阅读次数:
0