摘要:
In [11]: def findnum(List,num,lo=0,hi=None): ...: if lo < 0: ...: raise ValueError('lo must be non-negative') ...: if hi is None: ...: hi = len(List) ... 阅读全文
摘要:
查看库 show databases; 创建库 create database 数据库名; #库名不要纯数字,不要用汉字 删除库 drop database 数据库名; 选中库 use 数据库名; 查看表 show tables; 查看数据库创建过程 show create database 数据库 阅读全文
摘要:
# Pool进程池类 from multiprocessing import Pool import os import time import random def run(index): print("子进程%s启动----进程ID:%s"%(index, os.getpid())) t1 = time.time() time.sleep(random.random... 阅读全文