摘要: 索引目录 1.机器学习 2.机器学习 3.线性回归 阅读全文
posted @ 2019-09-16 11:16 maplethefox 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 索引目录 1.基础/数组 2.绘图 3.加载文件 4.绘制K线图 5.算数平均值/加权平均值 6.最值 7.中位数 8.标准差 9.时间数据处理/数组的轴向汇总 10.移动均线 11.卷积 12.布林带 13.线性模型 14.线性拟合 15.协方差/相关矩阵/相关系数 16.多项式拟合 17.数据平 阅读全文
posted @ 2019-09-03 19:07 maplethefox 阅读(851) 评论(0) 推荐(0) 编辑
摘要: 索引目录 1.网络爬虫概述 2.爬虫请求模块 3.数据持久化存储 4.requests模块 5.Chrome浏览器安装插件 6.xpath解析.lxml解析库 7.request.get()和代理参数 8.requests.post() 9.动态加载数据抓取-Ajax 10.多线程爬虫 11.coo 阅读全文
posted @ 2019-08-09 20:04 maplethefox 阅读(485) 评论(0) 推荐(0) 编辑
摘要: 索引目录 1.Redi介绍 2.数据类型:字符串类型(string) 3.数据类型:列表类型(list) 4.数据类型:Hash散列数据类型 5.数据类型:集合数据类型(set) 6.数据类型:有序集合类型(sorted set) 7.位图操作bitmap 8.数据持久化 9.Redis主从复制 阅读全文
posted @ 2019-08-06 23:14 maplethefox 阅读(770) 评论(0) 推荐(0) 编辑
摘要: 索引目录 1.AJAX基础 2.JSON基础 阅读全文
posted @ 2019-08-06 09:08 maplethefox 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 索引目录 1.Django介绍与安装 2.Django流程及模式 3.Django基本配置 4.Django模板(Templages) 5.Django应用程序 6.Django数据库 7.Django模型(Models) 8.数据库的操作(CRUD操作) 9.admin 后台数据库管理 10.数据 阅读全文
posted @ 2019-07-23 02:02 maplethefox 阅读(324) 评论(0) 推荐(0) 编辑
摘要: 索引目录 一、Web前端基础知识 1.Web前端介绍 2.CSS基础使用 3.CSS盒模型 4.CSS布局方式 5.CSS背景文本属性 6.JavaScript概述 7.JS基础语法 8.JS数据类型 9.JS运算符 10.JS流程控制(语句) 11.JS函数 12.JS内置对象 13.JQ介绍 二 阅读全文
posted @ 2019-07-07 18:16 maplethefox 阅读(416) 评论(0) 推荐(0) 编辑
摘要: 索引目录 一、Python基础知识 1.Python简介 2.Python基本数据运算 3.Python语句 4.Python容器类型的通用操作 5.Python容器类型 ‘srt字符串’ 6.Python容器类型 [list列表] 7.Python列表切片以及浅拷贝和深拷贝的区别 8.Python 阅读全文
posted @ 2019-06-07 16:47 maplethefox 阅读(738) 评论(0) 推荐(0) 编辑
摘要: //1、函数重载 function hello(name:string):string function hello(age:number):string function hello(value : string | number): string { if (typeof value 'stri 阅读全文
posted @ 2024-01-19 13:05 maplethefox 阅读(3) 评论(0) 推荐(0) 编辑
摘要: //1、类型推断 不建议使用 let str = 'abc' str = '123' //console.log(str) //2、类型注释 let str1:string = "abc" str1 = 'ewer' //console.log(str1) //3、类型断言 let str2:str 阅读全文
posted @ 2024-01-18 14:18 maplethefox 阅读(3) 评论(0) 推荐(0) 编辑
摘要: linux 常用命令有: pwd 命令 使用 pwd 命令找出您所在的当前工作目录(文件夹)的路径。该命令将返回一个绝对(完整)路径,该路径基本上是所有以 / 开头的目录的路径。绝对路径的一个示例是 /home/username。 cd 命令 要浏览 Linux 文件和目录,请使用 cd 命令。根据 阅读全文
posted @ 2023-06-02 14:03 maplethefox 阅读(27) 评论(0) 推荐(0) 编辑
摘要: import datetimeimport timedef get_float_time_stamp(): datetime_now = datetime.datetime.now() return datetime_now.timestamp()def get_time_stamp16(): # 阅读全文
posted @ 2023-05-23 15:48 maplethefox 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 终端执行命令如下:sudo npm uninstall npm -g sudo rm -rf /usr/local/lib/node /usr/local/lib/node_modules /var/db/receipts/org.nodejs.* sudo rm -rf /usr/local/in 阅读全文
posted @ 2023-03-09 13:06 maplethefox 阅读(418) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import logging import pymysql from rest_framework.response import Response logger = logging.getLogger(__name__) # 连接数据库 def ge 阅读全文
posted @ 2023-03-07 14:11 maplethefox 阅读(20) 评论(0) 推荐(0) 编辑
摘要: vue加密解密 /** * 工具类 * AES加密 * 特别注意:(1)AES加密中需要前后端共同协商一个密文(密钥),用来加密/解密的(2)偏移量。 * l36DoqKUYQP0N7e1 代表此次密文 */ import CryptoJS from 'crypto-js' //CBC模式 expo 阅读全文
posted @ 2022-09-28 14:08 maplethefox 阅读(522) 评论(0) 推荐(0) 编辑
摘要: import time def timer(func): def func_in(*args, **kw): start_time = time.time() print(start_time) func(*args, **kw) end_time = time.time() print(end_t 阅读全文
posted @ 2022-09-09 16:16 maplethefox 阅读(13) 评论(0) 推荐(0) 编辑
摘要: user_agents是一个Python库,通过解析(浏览器/HTTP)用户代理字符串,提供了一种简单的方法来识别/检测设备。user_agents依赖于优秀的ua-parser对原始用户代理字符串进行实际解析。 安装 C:\Users\lifeng01>pip install pyyaml ua- 阅读全文
posted @ 2022-07-21 15:07 maplethefox 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 获取公网IP import requests res = requests.get('http://myip.ipip.net', timeout=5).text print(res) 获取局域网IP 如果计算机设备有连接到 Internet 的路由,可以使用: import socket s = 阅读全文
posted @ 2022-07-21 09:48 maplethefox 阅读(358) 评论(0) 推荐(0) 编辑