09 2021 档案

摘要:递归 def partition_v2(start_index, end_index, array=None): # 取第一个... 阅读全文
posted @ 2021-09-27 23:05 阿无oxo 阅读(27) 评论(0) 推荐(0) 编辑
摘要:问题: 将n个皇后放置在 n×n 的棋盘上,并且使皇后彼此之间不能相互攻击,给你一个整数n,返回所有不同的n皇后问题的解决方案 ... 阅读全文
posted @ 2021-09-27 20:57 阿无oxo 阅读(84) 评论(0) 推荐(0) 编辑
摘要:前提 已经安装好uwsgi,supervisor,Tenginx 步骤1.uwsgi.ini配置($Home//documen... 阅读全文
posted @ 2021-09-24 07:32 阿无oxo 阅读(41) 评论(0) 推荐(0) 编辑
摘要:Tengine是由淘宝网发起的Web服务器项目.它在Nginx的基础上,针对大访问量网站的需求,添加了很多高级功能和特性.Tengi... 阅读全文
posted @ 2021-09-21 22:57 阿无oxo 阅读(70) 评论(0) 推荐(0) 编辑
摘要:supervisor 是基于 python 的任务管理工具,用来自动运行各种后台任务 当然你也能直接利用 nohup 命令使任务自动... 阅读全文
posted @ 2021-09-21 13:22 阿无oxo 阅读(28) 评论(0) 推荐(0) 编辑
摘要:1.含义 WSGI是Web服务器网关接口.是一个规范,描述了Web服务器如何与Web应用程序通信,以及Web应用程序如何链接在一起以... 阅读全文
posted @ 2021-09-21 10:46 阿无oxo 阅读(97) 评论(0) 推荐(0) 编辑
摘要:1.检查使用CentOS7使用的网卡输入ifconfig 2.进入/etc/sysconfig/network-scripts/目... 阅读全文
posted @ 2021-09-20 12:30 阿无oxo 阅读(228) 评论(0) 推荐(0) 编辑
摘要:针对问题Django使用SQLLite问题: DJANGO.CORE.EXCEPTIONS.IMPROPERLYCONFIGUR... 阅读全文
posted @ 2021-09-20 11:39 阿无oxo 阅读(99) 评论(0) 推荐(1) 编辑
摘要:Red Hat Enterprise Linux/CentOS 7.0 发行版已将默认的数据库从 MySQL 切换到 MariaDB... 阅读全文
posted @ 2021-09-19 22:15 阿无oxo 阅读(34) 评论(0) 推荐(0) 编辑
摘要:大多数ssh连接不上虚拟机,数据库软件连接不上linux中的数据库,都是因为防火墙阻挡了 1.SELinux SELinux(... 阅读全文
posted @ 2021-09-19 21:59 阿无oxo 阅读(27) 评论(0) 推荐(0) 编辑
摘要:virtualenvwrapper 1.安装 # 安装 - Linuxpip install virtualenvwrapper# ... 阅读全文
posted @ 2021-09-19 21:12 阿无oxo 阅读(30) 评论(0) 推荐(0) 编辑
摘要:目地:给虚拟机中的centos7中的分配固定的IP 1.设置虚拟机的网络连接方式:按照如下图设置,英文版的对照设置即可 配置... 阅读全文
posted @ 2021-09-19 21:09 阿无oxo 阅读(47) 评论(0) 推荐(0) 编辑
摘要:文章目录 1.编译Python3.9.22.安装pandas 1.编译Python3.9.2 1,进入https://www... 阅读全文
posted @ 2021-09-19 12:26 阿无oxo 阅读(91) 评论(0) 推荐(0) 编辑
摘要:文章目录 1.安装vim2.安装wget3.安装ifconfig4.配置阿里云yum源 1.要给centos分配规定的i... 阅读全文
posted @ 2021-09-19 12:26 阿无oxo 阅读(27) 评论(0) 推荐(0) 编辑
摘要:1.基础使用 # 准备一个基类(父类)class BaseClass: def talk(self): prin... 阅读全文
posted @ 2021-09-15 22:44 阿无oxo 阅读(29) 评论(0) 推荐(0) 编辑
摘要:方式一:装饰器函数 def Singleton(cls): instance = {} def wrapper(*arg... 阅读全文
posted @ 2021-09-15 22:21 阿无oxo 阅读(19) 评论(0) 推荐(0) 编辑
摘要:魔法属性 无论人或事物往往都有不按套路出牌的情况,Python的类属性也是如此,存在着一些具有特殊含义的属性,详情如下: 1. do... 阅读全文
posted @ 2021-09-14 08:36 阿无oxo 阅读(32) 评论(0) 推荐(0) 编辑