机器学习笔记(1) -- 决策树

摘要: csv的内容为: 运行的代码为: from sklearn.feature_extraction import DictVectorizer import csv from sklearn import tree,preprocessing from six import StringIO allE 阅读全文
posted @ 2022-12-01 17:06 torotoise512 阅读(16) 评论(0) 推荐(0) 编辑

freeradius + mysql安装配置

摘要: 该文档参考http://t.zoukankan.com/FlyingPuPu-p-7772410.html安装,仅做了微调。 一、准备工作 安装编译FreeRadius所需要的依赖 #安装wget、gcc、gcc-c++、make yum install –y wget gcc gcc-c++ ma 阅读全文
posted @ 2022-07-26 16:03 torotoise512 阅读(1067) 评论(0) 推荐(0) 编辑

Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist:...

摘要: 大家都知道Centos8于2021年年底停止了服务,大家再在使用yum源安装时候,出现下面错误“错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mi 阅读全文
posted @ 2022-07-22 17:19 torotoise512 阅读(286) 评论(0) 推荐(0) 编辑

python虚拟环境和包管理

摘要: 新建一个虚拟环境: python3 -m venv env1 # 新建一个名称为env1的虚拟环境 激活环境: source env1/bin/activate 退出虚拟环境: deactivate 生成安装包文件: pip freeze >requirements.txt 安装文件中的包: pip 阅读全文
posted @ 2022-07-11 00:02 torotoise512 阅读(112) 评论(0) 推荐(0) 编辑

django日志分割的几种处理

摘要: https://blog.csdn.net/qq_42819407/article/details/125041634 阅读全文
posted @ 2022-07-09 10:09 torotoise512 阅读(42) 评论(0) 推荐(0) 编辑

Django新版本报错问题解决

摘要: 在创建app的时候会报如下错误: python3 manage.py startapp test django.core.exceptions.ImproperlyConfigured: SQLite 3.9.0 or later is required (found 3.7.17). 这是因为启动 阅读全文
posted @ 2022-07-07 16:55 torotoise512 阅读(387) 评论(0) 推荐(0) 编辑

Centos7 更换yum软件源

摘要: https://blog.csdn.net/zhinian1204/article/details/123975403 阅读全文
posted @ 2022-07-06 16:31 torotoise512 阅读(22) 评论(0) 推荐(0) 编辑

时间字符串转时间戳

摘要: 一、时间字符串转毫秒时间戳 import datetime import calendar timestr = '2022-06-22T01:07:26.943Z' timestr = timestr.replace('T',' ').replace('Z','') print(timestr) # 阅读全文
posted @ 2022-06-29 13:45 torotoise512 阅读(933) 评论(0) 推荐(0) 编辑

【转】BIO,NIO和AIO

摘要: 本文转自:https://blog.csdn.net/qxy_1218/article/details/123941039 BIO,NIO和AIO是Java网络编程的三种模型 BIO:同步并阻塞,服务实现模式为一个连接对应一个线程,即客户端发送一个连接,服务端要有一个线程来处理。如果连接多了,线程数 阅读全文
posted @ 2022-06-21 09:22 torotoise512 阅读(17) 评论(0) 推荐(0) 编辑

GSLB工作原理

摘要: 参考文档: http://chongit.github.io/2015/04/15/GSLB%E6%A6%82%E8%A6%81%E5%92%8C%E5%AE%9E%E7%8E%B0%E5%8E%9F%E7%90%86/ 阅读全文
posted @ 2022-06-20 09:31 torotoise512 阅读(77) 评论(0) 推荐(0) 编辑