自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(30)
  • 资源 (2)
  • 收藏
  • 关注

原创 python内置函数

python内置函数dir()函数dir() 函数一个排好序的字符串列表,内容是一个模块里定义过的名字。返回的列表容纳了在一个模块里定义的所有模块,变量和函数。globals() 和 locals() 函数根据调用地方的不同,globals() 和 locals() 函数可被用来返回全局和局部命名空间里的名字。如果在函数内部调用 locals(),返回的是所有能在该函数里访问的命名。如果在函数内部调用 globals(),返回的是所有在该函数里能访问的全局名字。两个函数的返回类型都是字典。所

2021-12-06 10:44:39 111

原创 Python学习从入门到精通网站汇总

1、python入门https://github.com/jackfrued/Python-100-Days2、python进阶https://docs.pythontab.com/interpy/decorators/deco_class/https://python3-cookbook.readthedocs.io/zh_CN/latest/index.html3、第三方库padans:https://pandas.pydata.org/docs/numpy:https://docs.

2021-12-06 10:43:03 273

原创 ubuntu下pip安装失败

1、文件权限问题,在pip前添加sudo,有时候文件太大或者网络不好也会报类似的错Command “/usr/bin/python3 -u -c “import setuptools, tokenize;file=’/tmp/pip-build-0jtgof/pillow/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(’\r\n’, ‘\n’);f.close();exec(compile(code, fil

2021-11-30 20:05:34 2918

原创 Docker

Docker容器隔离,环境集成配置:Hadoop,jar,Mysql,解决运行环境和配置问题软件容器,容器虚拟化技术Docker的应用场景Web应用的自动化打包、发布和动态伸缩持续集成、自动化测试、持续部署与交付作为微服务架构使用:部署无状态服务,同虚拟机互补使用,实现隔离性作为微服务架构使用:部署有状态服务,需要十分了解应用适合部署跨云,跨Region,跨数据中心,混合云场景下的应用部署和弹性伸缩以容器作为应用的交付物,保持环境一致性,树立不可变更基础设施的理念用于管理变更,变更频

2021-11-17 16:50:45 617

原创 python爬虫学习笔记

python爬虫学习笔记用程序模拟浏览器,输入一个网站从该网站中获取资源或者内容服务器渲染:在服务器端直接把数据和html整合在一起,统一返回给浏览器客户端渲染:在浏览器端、第一次请求只要一个html骨架,第二次请求拿到数据,进行数据展示,在页面源代码中,看不到数据浏览器抓包工具HTTP超文本传输协议 HTML超文本标记语言解析工具re解析bs4解析xpath解析请求:请求行->请求方式 请求url地址协议请求头->放服务器使用的附加地址请求体

2021-11-17 16:50:12 753

原创 Django个人博客搭建

Django个人博客搭建工具 :PycharmPython3.8前端:CSS2+HTML5+JavaScriptDjango3.0Git版本管理器Github网站或者gitee前期项目创建:创建文件夹项目 mkdir my_bolg创建项目django-admin startproject bolgcd bolg创建虚拟环境:py -m venv env启动虚拟环境:env\Scripts\activate创建项目:django

2021-11-17 16:49:24 838

原创 python函数

python内置函数dir()函数dir() 函数一个排好序的字符串列表,内容是一个模块里定义过的名字。返回的列表容纳了在一个模块里定义的所有模块,变量和函数。globals() 和 locals() 函数根据调用地方的不同,globals() 和 locals() 函数可被用来返回全局和局部命名空间里的名字。如果在函数内部调用 locals(),返回的是所有能在该函数里访问的命名。如果在函数内部调用 globals(),返回的是所有在该函数里能访问的全局名字。两个函数的返回类型都是字典。所

2021-11-17 16:48:04 600

原创 Django-ORM

Django之ORM框架ORMDB类数据表--对象数据行--属性字段创建应用python3 manage.py startapp bookstore在models.py下编写模型类class 模型类名(models.Model): 字段名=models.字段类型(字段选项)迁移同步#生成模型类python3 manage.py makemigrations#同步python3 manage.py migrate任何关

2021-10-30 21:56:52 99

原创 Django报错

Django报错解决执行数据库迁移python3 manage.py makemigrationspython3 manage.py migrateTraceback (most recent call last): File "manage.py", line 21, in <module> main() File "manage.py", line 17, in main execute_from_command_line(sys.argv) File

2021-10-30 19:43:48 195

原创 django数据库

django安装数据库并创建数据库1、检测有没有安装数据库sudo apt list --installed -E 'libmysqlclient-dev|python3-dev'安装pip3依赖sudo apt-get install python3-dev default-libmysqlclient-dev安装mysqlsudo pip3 install mysqlclient由于安装mysql没有输入密码所以先修改密码sudo gedit /etc/mysql/mysql.co

2021-10-29 18:55:26 87

原创 django创建

django创建创建一个文件夹mkdir /python/django/test01创建一个django项目django-admin startproject mysite3进入django项目cd mysite3启动djangopython3 manage.py runserver

2021-10-29 15:30:26 54

原创 CSS3学习思维导图

2021-10-29 12:55:32 154

原创 面向对象脑图

2021-10-28 16:45:52 55

原创 OSINT和被动侦察

2021-10-25 21:05:37 152

原创 HTML5

2021-10-25 20:59:33 66

原创 2021-10-13

项目代码地址:1. 眨眼检测https://github.com/statisticszhang/drowsinessDetector2. 目标跟踪https://github.com/statisticszhang/object_tracking3. 道路检测https://github.com/statisticszhang/lane_detection4. 人脸关键点检测https://github.com/statisticszhang/faceLandmarks模型文件:https://gith

2021-10-13 20:56:18 117

原创 Python内置函数脑图

Python内置函数脑图

2021-10-02 14:54:54 125

原创 Python模块脑图

Python模块脑图

2021-10-02 14:52:59 73

原创 2021-10-01

github python学习资料https://github.com/reorx/httpstat记录鼠标键盘重复任务https://github.com/taojy123/KeymouseGohttps://github.com/yidao620c/python3-cookbookhttps://github.com/realpython/python-guidehttps://github.com/jackfrued/Python-100-Dayshttps://github.com/e

2021-10-01 23:37:52 68

转载 2021-09-29

ubuntu 20.04 sudo rosdep init报错ERROR: default sources list file already exists:/etc/ros/rosdep/sources.list.d/20-default.listPlease delete if you wish to re-initialize由于网站服务器被屏蔽所以转国内源

2021-09-29 12:46:11 61

原创 ubuntu20.04存在丢包

执行后rosdep install --from-paths src --ignore-src -r -y --rosdistro melodicWARNING: given --rosdistro melodic but ROS_DISTRO is "foxy". Ignoring environment.ERROR: the following packages/stacks could not have their rosdep keys resolvedto system dependen

2021-09-26 08:49:59 1048

原创 ubuntu20.04 安装依赖问题

下列软件包有未满足的依赖关系: ros-melodic-ros-controllers : 依赖: ros-melodic-ackermann-steering-controller 但是它将不会被安装 依赖: ros-melodic-diff-drive-controller 但是它将不会被安装 依赖: ros-melodic-effort-controllers 但是它将不会被安

2021-09-26 08:41:06 1246

原创 ubuntu 20.04 报错rosdep update

ERROR: unable to process source [https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml]: <urlopen error [Errno 111] Connection refused> (https://raw.githubusercontent.com/ros/rosdistro/master/rosdep/osx-homebrew.yaml)ERROR

2021-09-26 08:30:47 159

原创 隐藏技术和自动侦察思维导图

隐藏技术和自动侦察

2021-09-25 16:38:16 68

原创 算法思想思维导图

2021-09-25 09:07:52 78

原创 2021-09-21

liunx思维导图

2021-09-21 18:10:13 47

原创 2021-09-20

import mathimport matplotlib.pyplot as pltimport numpy as np# Fast SLAM covarianceQ = np.diag([3.0, np.deg2rad(10.0)]) ** 2R = np.diag([1.0, np.deg2rad(20.0)]) ** 2# Simulation parameterQsim = np.diag([0.3, np.deg2rad(2.0)]) ** 2Rsim = np...

2021-09-20 14:58:07 127

原创 Python学习笔记

Python学习笔记基础知识Liunx基础Liunx是多用户操作系统没有盘符的概念拥有目录结构,在home文件夹中可以存储多个用户每一个用户管理自己相对于的文件夹,而windos是单用户参考:https://www.runoob.com/linux/linux-system-contents.html/root:该目录为系统管理员,也称作超级权限者的用户主目录。/sbin:s 就是 Super User 的意思,是 Superuser Binaries (超级用户的二进制文件) 的缩写,这里

2021-09-13 19:46:37 378

原创 shell 学习笔记

shell 学习笔记shell脚本就是将完成一个任务的所有命令按照先后顺序,自上而下写入到一个文本文件然后给予执行权限。chomd +x 文件名./文件名#执行文件名名要有意义脚本编写#!/usr/bin/bash//#!是特例,解释运行的环境#Author //作者#Created //Time时间#描述运行脚本1、给执行权限 chmod +x、用路径运行2、解释器直接运行 bash、sh特殊符号~:家目录-:上一级目录!:执行历史命令+ 、—、*、/, %:对应数

2021-05-20 21:01:42 63

原创 2021-05-17

filepath=$1Get username from file and Add usercat $filepath | while read usernamedo# Create a dir with usernamemkdir -p /var/general/users/$username/useradd -d /var/general/users/$username/ $username if [ $? -eq 0 ];then echo "user ${username}

2021-05-17 20:59:17 63

python爬虫.pdf

python爬虫PDF

2021-12-09

djangoProject.zip

djangoProject.zip

2021-10-24

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除