1. 前提 需要多个实例 每台实例server_id不同 需要开启二进制日志 主库需要提供复制相关的用户权限(replication slave) 从库需要将和主库相
1. 多态同一个方法在不同的类中最终呈现出不同的效果,即为多态。 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 class demo1(object): def __init__(self,width,height): self.width = width self.height = height def getArea(self): area=self.width* self.height / 2 return area
1. 函数参数释义 必选参数 函数定义时,定义了接收变量,那么在函数调用时就必须传递该参数值 默认参数 在函数定义时,可为需要接受值的参数设置一个默认值
开机临时关闭本地安全策略(防止配置出错,导致无法登录) 1 2 3 4 netsh ipsec static set policy name=我的规则 assign=n ping 127.0 -n 300 >nul 2>nul netsh ipsec static set policy name=我的规则 assign=y net start PolicyAgent
1. 系统安全显示电脑图标到桌面: rundll32.exe shell32.dll,Control_RunDLL desk.cpl,,0 开始文件夹: shell:startup 本地安全策略: secpol.msc 计算机管理: compmgmt.msc 1.1. 修改服务器名:按项目取名。 右键点击我的电脑-高级-计算机名
1. windows 服务安装卸载 1 2 3 4 :: 注意空格 sc create "Memcached_11233" start= auto binPath= "D:\box\memcached\memcached.exe -d runservice -m 128 -c 512 -p 11233 -l 127.0.0.1" DisplayName= "Memcached_11233" ---- sc delete Memcached_11233 2. 删除windows\temp 5天前以sess*开头的文件 1