摘要:
MySQL常用命令 一、用户管理 当IP地址为一段时是可使用通配符%,即'192.1638.1.%' 创建用户 create user '用户名'@'IP地址' identified by '密码'; 删除用户 drop user '用户名'@'IP地址'; 修改用户 remane user '用户 阅读全文
摘要:
Python文件夹备份 import os,shutil def file_copy(path1,path2): f2 = [filename1 for filename1 in os.listdir(path2)] for filename in os.listdir(path1): if fil 阅读全文
摘要:
Python的logging模块 一、简单的将日志打印到屏幕 import logging logging.debug('This is debug message') logging.info('This is info message') logging.warning('This is war 阅读全文