PyMySQL的安装 pip install PyMySQL python连接数据库 import pymysql db = pymysql.connect("数据库ip","用户","密码","数据库" ) # 打开数据库连接 cursor.execute("SELECT VERSION()") ...
分类:
数据库 时间:
2020-04-16 14:51:54
阅读次数:
63
使用threading模块中的Timer函数 from threading import Timer import time def execute_func(name, age, gender, hobby): print(f"name is {name}, age is {age}, gende ...
分类:
其他好文 时间:
2020-04-16 00:58:09
阅读次数:
94
Makefile/makefile 简介 makefile 规则 target: 目标文件 prerequisites: 依赖文件 command: 执行命令 命令执行之前先检查依赖 依赖存在:执行命令 依赖不存在: 向下检测其他的规则,看看是否有一个规则是用来生成这个依赖,如果找到, 执行该规则中 ...
分类:
其他好文 时间:
2020-04-15 21:38:45
阅读次数:
70
在Windows操作系统中使用eclipse本地运行hadoop的hdfs程序, FileSystem local = FileSystem.getLocal(conf); 使用 FSDataOutputStream out = local.create(localFile); 创建本地文件输出流时 ...
# Flume 监控文本文件sink到kafka a1.sources = r1a1.sinks = k1a1.channels = c1 # Describe/configure the source a1.sources.r1.type = execa1.sources.r1.command = ...
分类:
Web程序 时间:
2020-04-15 18:06:21
阅读次数:
74
1>.commnd+空格输入terminal打开终端 2>.显示隐藏文件夹 Shift+command+. ...
分类:
系统相关 时间:
2020-04-15 17:43:48
阅读次数:
81
在有网络的情况下: 1、包管理器安装 centos 中用 yum -y install tree ubuntu 中用 apt-get install tree 当然如果需要权限不要忘了在前面加上 sudo 2、源码编译安装 wget ftp://mama.indstate.edu/linux/tre ...
分类:
系统相关 时间:
2020-04-15 16:26:21
阅读次数:
132
5.7 Doorbell Buffer Config commandThe Doorbell Buffer Config command is used to provide two separate memory buffers that mirror the controller's doorb ...
分类:
其他好文 时间:
2020-04-14 21:05:59
阅读次数:
95
我们先来看看系统自带的route命令的帮助文档 C:\Users\Administrator>route /? 操作网络路由表。 ROUTE [-f] [-p] [-4|-6] command [destination] [MASK netmask] [gateway] [METRIC metric ...
分类:
其他好文 时间:
2020-04-14 20:58:29
阅读次数:
92
5.3 Create I/O Completion Queue commandThe Create I/O Completion Queue command is used to create all I/O Completion Queues with the exception of the A ...
分类:
其他好文 时间:
2020-04-14 20:48:34
阅读次数:
55