摘要: 案例一:汉诺塔 例一: def move(n, a, buffer, c): if n ==1: print('move', a, '-->', c) else: move(n-1, a, c, buffer) move(1, a, buffer, c) move(n-1, buffer, a, c 阅读全文
posted @ 2019-01-02 21:16 墨雨&莫语 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 应用一:连接远程机执行bash命令 import paramiko#此模块用于连接虚拟机,ansible底层用此模块 hostname = '192.168.254.24' port = 22 username = 'root' password = 'root' ssh = paramiko.SS 阅读全文
posted @ 2019-01-02 21:07 墨雨&莫语 阅读(2314) 评论(0) 推荐(0) 编辑
摘要: print("**********欢迎进入名片管理新系统**********") card_infors = [] #用来存储名片 def print_menu(): """完成打印功能菜单""" print("="*42) print(" 名片管理系统V0.01") print(" 1.添加一个新 阅读全文
posted @ 2019-01-02 20:55 墨雨&莫语 阅读(2179) 评论(0) 推荐(1) 编辑
摘要: 网站主架构: LAMP=Linux+Apache+MySQL+PHP LNMP=Linux+Nginx+MySQL+PHP 此处为LAMP 安装架构组件(安装步骤): 1、安装Apache 2、MySQL或Mariadb安装 3、PHP安装 启动对应服务(使用步骤): 4、启动Apache 5、启动 阅读全文
posted @ 2019-01-02 20:47 墨雨&莫语 阅读(428) 评论(0) 推荐(0) 编辑