上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 26 下一页
摘要: 一、创建公共 HTML 模板 在 templates 文件里面新建一个 base.html,再到Bootstrap4中文文档找到 最基本的模板,拷贝代码到 base.html,在 home.html 中引入 base.html: {% extends 'base.html' %} {% block 阅读全文
posted @ 2020-08-28 15:22 Wonz 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 一、安装Python 我之前写过一个安装教程,可以参考:Anaconda——最省心的 Python 版本。 二、安装虚拟环境 以管理员身份运行 PowerShell,修改 PowerShell 权限: Set-ExecutionPolicy Unrestricted 查看已安装的库: pip fre 阅读全文
posted @ 2020-08-28 15:14 Wonz 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 一、VirtualBox 安装教程 先去官网下载 然后一直点下一步就行了。 这里出现了 Windows 安全中心的提示,选择 安装: VirtualBox 安装完成。 二、CentOS Linux 系统环境安装教程 先新建一个虚拟机: 设置虚拟机信息: 分配内存: 选择 现在创建虚拟硬盘: 选择 V 阅读全文
posted @ 2020-08-27 19:22 Wonz 阅读(598) 评论(0) 推荐(0) 编辑
摘要: 环境 CentOS7 思路 设置一个死循环,执行脚本时开始启动 httpd 服务,同时开始记录当前时间,然后输出到日志中,再 sleep 14 秒,之后马上开始停止 httpd 服务,同时开始记录当前时间,然后输出到日志中。重复这个死循环。 代码 用 vi test.sh 打开文件,按 i 进行编辑 阅读全文
posted @ 2020-08-27 11:00 Wonz 阅读(468) 评论(0) 推荐(0) 编辑
摘要: 安装 httpd 服务 输入下面命令安装 httpd 服务,注意要使用带有 root 权限 的用户,我是从普通用户切回超级用户 root 再开始执行命令的: yum -y install httpd 报错:Cannot find a valid baseurl for repo: base/7/x8 阅读全文
posted @ 2020-08-27 10:49 Wonz 阅读(6057) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0491. Increasing Subsequences递增子序列【Medium】【Python】【DFS】 Problem LeetCode Given an integer array, your task is to find all the different possi 阅读全文
posted @ 2020-08-25 19:42 Wonz 阅读(147) 评论(0) 推荐(0) 编辑
摘要: ldap3 官方文档学习之增删改查操作 前言 公司部门培训用到 ldap3,布置了个作业,于是开始看官方文档学习中。我是直接从 LDAP Operations 部分开始看的。 主要就是官方文档提供了增删改查的接口,需要看懂函数和参数,然后就会用了。 增加操作 官方 add 函数 def add(se 阅读全文
posted @ 2020-08-25 17:11 Wonz 阅读(1436) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0529. Minesweeper扫雷游戏【Medium】【Python】【DFS】 Problem LeetCode Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char 阅读全文
posted @ 2020-08-21 17:15 Wonz 阅读(126) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0647. Palindromic Substrings回文子串【Medium】【Python】【中心扩展】【动态规划】 Problem LeetCode Given a string, your task is to count how many palindromic subs 阅读全文
posted @ 2020-08-21 16:41 Wonz 阅读(140) 评论(0) 推荐(0) 编辑
摘要: LeetCode 0111. Minimum Depth of Binary Tree二叉树的最小深度【Easy】【Python】【二叉树】 Problem LeetCode Given a binary tree, find its minimum depth. The minimum depth 阅读全文
posted @ 2020-08-21 15:54 Wonz 阅读(126) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 26 下一页