继承案例二 1.定义一个人类: 包括属性:姓名(name)、性别(sex)、年龄(age)、国籍(country) 包括方法:吃饭(eat)、睡觉(sleep),工作(work) # 自定义一个人类 class Person(object): def __init__(self, name, sex ...
分类:
其他好文 时间:
2020-05-12 20:36:37
阅读次数:
89
C++11 新标准中引入了四个头文件来支持多线程编程,他们分别是 。 ``:该头文主要声明了两个类, std::atomic 和 std::atomic_flag,另外还声明了一套 C 风格的原子类型和与 C 兼容的原子操作的函数。 ``:该头文件主要声明了 std::thread 类,另外 std ...
分类:
编程语言 时间:
2020-05-12 09:51:19
阅读次数:
69
INT getDataCallBack(void* para, int nColumn, char** colValue, char** colName) { sqlite3* db; char* errmsg; int nResult = sqlite3_open("MSG.db", &db); ...
分类:
数据库 时间:
2020-05-11 17:12:14
阅读次数:
120
webdriver中弹框 1 #1:定位alert弹出框 2 #点击页面元素,触发alert弹出框 3 driver.find_element_by_xpath('//*[@id="alert"]').click() 4 time.sleep(3) 5 #等待alert弹出框可见 6 WebDriv ...
分类:
Web程序 时间:
2020-05-10 17:13:26
阅读次数:
78
继承 单继承 多继承 继承:继承实现代码的重用,相同的代码不需要重复的编写 class Anamal: def eat(self): print('吃') def drink(self): print('喝') def run(self): print('跑') def sleep(self): p ...
分类:
其他好文 时间:
2020-05-10 16:57:51
阅读次数:
69
#__author__:Kelvin #date:2020/5/10 11:37 import time from multiprocessing import Process def son1(): while True: print('--> in son1') time.sleep(1) de ...
分类:
系统相关 时间:
2020-05-10 12:36:46
阅读次数:
70
`默认` 每一条涉及到被修改的sql都会记录在binlog中。 缺点:日志量过大,如sleep()函数, last_insert_id() ,以及user defined functions(udf)会出现问题 只记录变动的记录,不记录sql的上下文环境。 缺点:如果遇到 updata .... s ...
分类:
数据库 时间:
2020-05-09 19:25:53
阅读次数:
85
#!/usr/bin/env python # -*- coding:utf-8 -*- # Author: xuexueuxe import socket import select import os,json,time,queue def get(r,cmd): filename = cmd. ...
分类:
其他好文 时间:
2020-05-09 18:38:10
阅读次数:
61
python3.7连接oracle 本文示例使用 oracle-11.2.0.4.0版本 oracle-client准备部分 1.下载oracle client,下载地址 注意: 1.保证与oracle服务器版本统一 2.python3 ,oracle服务器,oracle client统一使用64位 ...
分类:
数据库 时间:
2020-05-08 19:55:53
阅读次数:
149
code import time import datetime t1=time.time() time.sleep(5) t2=time.time() print("相差",(datetime.datetime.fromtimestamp(t2)-datetime.datetime.fromtim ...
分类:
编程语言 时间:
2020-05-08 18:37:14
阅读次数:
331