hasattr(object, name) hasattr() 函数用于判断对象是否包含对应的属性。如果对象有该属性返回 True,否则返回 False。 ...
分类:
其他好文 时间:
2021-03-17 14:28:45
阅读次数:
0
//打印一个字符小人 #include <stdio.h> int main() { printf(" o \n"); printf("<H>\n"); printf("I I\n"); printf(" o \n"); printf("<H>\n"); printf("I I\n"); retur ...
分类:
编程语言 时间:
2021-03-17 14:26:23
阅读次数:
0
基本开发环境: ·Python3.6 ·Pycharm 相关模块使用: import requests import time 目标网页分析: 选择一个影视栏目,F12或者鼠标右键检查,打开开发者工具,选择network,下滑网页 https://haokan.baidu.com/videoui/a ...
分类:
编程语言 时间:
2021-03-17 14:20:20
阅读次数:
0
根目录 在 Linux 中有且只有一个根目录,就是 / (斜杠),Linux 中没有比根目录再高一阶的目录了,没有目录包含根目录,根目录就是 Linux 最顶层的目录。 Linux 中用斜杠 / 来标明目录的层级与包含关系,Linux 的目录形式是这样的 /usr/bin,bin 是 usr 目录的 ...
分类:
系统相关 时间:
2021-03-17 14:18:28
阅读次数:
0
配置文件 vi /etc/network/interfaces 自动IP # interfaces(5) file used by ifup(8) and ifdown(8) auto lo iface lo inet loopback auto ens33 iface ens33 inet dhc ...
分类:
系统相关 时间:
2021-03-17 14:16:49
阅读次数:
0
1485下载地址 https://docs.qq.com/doc/DWEpnR2pOWU91b3p4?pub=1&dver=2.1.0 #include <reg51.h> #include <intrins.h> #define uchar unsigned char #define uint u ...
分类:
其他好文 时间:
2021-03-17 14:10:52
阅读次数:
0
1. 拉取elasticsearch7.6.0镜像: sudo docker pull elasticsearch:7.6.0 2. 输入命令,构建容器: sudo docker run --name es1 -e 'discovery.type=single-node' --network=myn ...
分类:
其他好文 时间:
2021-03-17 14:02:05
阅读次数:
0
cte可以使用在递归和非递归方式,在非递归方式时,优点可以提高性能,确定可能会有点难理解 1、非递归 有这么一张表,要查询当前菜单的信息以及父菜单的名称,也就是说要把pid换成pname 传统方式,使用子查询或自连接查询 select m.*, (select name from menu wher ...
分类:
数据库 时间:
2021-03-16 14:10:00
阅读次数:
0
微信搜索 每日微群吧 里面可以搜索微信群和发布群 ...
分类:
微信 时间:
2021-03-16 13:42:45
阅读次数:
0
实验01 波士顿房价预测 实现代码: from sklearn.linear_model import LinearRegression, SGDRegressor, Ridge, LogisticRegression from sklearn.datasets import load_boston ...
分类:
其他好文 时间:
2021-03-16 13:41:41
阅读次数:
0