摘要:
一、使用threading模块实现多线程 import threading import time def test(): print('111111111') if __name__ == '__main__': for i in range(5): t = threading.Thread(ta 阅读全文
摘要:
一、进程、程序 1.编写完成的代码,在没有运行的时候,称之为程序 2.正在运行着代码,称之为进程 二、用fork创建进程 import os res = os.fork() if res == 0: while True: print('111111') time.sleep(1) else: wh 阅读全文
摘要:
一、DCL语句 1.添加权限: 1 grant select,insert on sakila.* to 'z1'@'localhost' identified by '123'; 2 注:sakili为数据库名,z1为新创建的数据库用户,123为密码 2.权限收回: 1 revoke insert 阅读全文