编程笔记

  • Windows 下安装 Open3D

    至于为什么会有这篇文章。。。说来话长学习点云数据处理之前,本想想着使用大名鼎鼎的 PCL 库学习学习,无奈本人太菜,搞了数天各种出错,遂放弃而 python-pcl 库也有数年未更新,并且安装也不容易,再次放弃查询多…

    编程笔记 2022年8月20日
  • python 对文本进行分词

    # 导入正则表达式相关模块 import re # 定义一个函数,通过该函数查找文本字符串中的每一个单词 # 然后计算每个单词出现的次数,最后按照出现次数从多到少放到变量中 def get_char(txt): # 通过re.split()函数将英…

    编程笔记 2022年8月20日
  • python 动态导入模块并结合反射,动态获取类、方法(反射太好用)

    背景:  关键字驱动框架,不同的关键字方法分别定义在不同的类,真正执行关键字方法又在不同的类(简称A),这样就需要在执行前,要在文件A下import要使用的模块,如果有很多页面操作或很多模块时,就需要每次都要i…

    编程笔记 2022年8月20日
  • python JSON.parse

    一、JSON的解析方法有两种:eval()和JSON.parse() var jsonstr='{"str1":"Hello,", "str2":"world!"}'; var evalJson=eval('('+jsonstr+')'); var jsonParseJson=JSON.parse(jsonstr);  这样就把jsonstr这个json格…

    编程笔记 2022年8月20日
  • linux brctl

    linux brctl 1.1 命令参数 Usage: brctl [commands] commands: addbr add bridge delbr delete bridge addif add interface to bridge delif delete interface from bridge setageing set ageing time setbridgepri…

    智能运维 2022年8月20日
  • Linux防火墙(iptables/firewalld)

    Linux防火墙(iptables/firewalld) 一、iptables 1. iptables概述 Linux系统的防火墙:IP信息包过滤系统,它实际上由两个组件netfilter和iptables组成。主要工作在网络层,针对IP数据包。体现在对包内的IP地址、端…

    智能运维 2022年8月20日
  • Harley浅谈Linux的iptables

      简介     常用命令   CentOS6 1、查看防火墙状态:service iptables status、/etc/init.d/iptables status 2、启/停/重启防火墙:service iptables start/stop/restart 3、查看防火墙是否开机启动:chkconfig ipt…

    智能运维 2022年8月20日
  • [Google] LeetCode 2096 Step-By-Step Directions From a Binary Tree Node to Another

    You are given the root of a binary tree with n nodes. Each node is uniquely assigned a value from 1 to n. You are also given an integer startValue representing the value of the start node s, and a di…

    编程笔记 2022年8月20日
  • Linux部署-Net并配置进程守护

    注册 Microsoft 签名密钥并添加 Microsoft 产品提要 sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc sudo sh -c 'echo -e "[packages-microsoft-com-prod]/nname=packages-microsoft-com-pr…

    智能运维 2022年8月20日
  • linux zip

    linux zip -A:调整可执行的自动解压缩文件; -b<工作目录>:指定暂时存放文件的目录; -c:替每个被压缩的文件加上注释; -d:从压缩文件内删除指定的文件; -D:压缩文件内不建立目录名称; -f:此参数的效…

    智能运维 2022年8月20日