######cut -d 指定分隔符 -f 指定列数 1,2,3 [root@rongbiz002 26]# awk '{print $1}' /www/wwwlogs/c2p.rongbiz.com-access_log|head -n5 |cut -d '.' -f 1,2,3 112.64.5 ...
分类:
系统相关 时间:
2021-02-27 13:40:48
阅读次数:
0
linux crontab报以下错误解决 [root@china ~]# crontab -l 拒绝权限You (root) are not allowed to access to (crontab) because of pam configuration. 解决: 1.查看定时任务的日志/va ...
分类:
数据库 时间:
2021-02-27 13:40:22
阅读次数:
0
编程时,偶尔需要伪造(模拟)数据,下面介绍如何使用Python伪造中文姓名。 1、安装库Faker # pip install Faker 2、导入并输出中文姓名 from faker import Faker fake = Faker("zh_CN") fake.name() 3、批量生成数据 N ...
分类:
编程语言 时间:
2021-02-27 13:39:58
阅读次数:
0
https://pypi.org/project/retrying/ Project description Retrying is an Apache 2.0 licensed general-purpose retrying library, written in Python, to simp ...
分类:
其他好文 时间:
2021-02-27 13:27:07
阅读次数:
0
CH.12_面向对象_继承的优缺点 本章探讨继承和子类化,重点是说明对 Python 而言尤为重要的两个细节: 子类化内置类型的缺点 多重继承和方法解析顺序 12.1 子类化内置类型很麻烦 在 Python 2.2 之前,内置类型(如 list 或 dict)不能子类化。在 Python 2.2 之 ...
分类:
编程语言 时间:
2021-02-27 13:22:21
阅读次数:
0
2.25 python字符串(13个) 1.以XX开头 (startswith()) v1="我爱我的祖国" result = v1.startswith("我") #判断是否以“我”开头,如果是返回"true" print(result) #true #例 v1=input("请输入户籍所在地") ...
分类:
编程语言 时间:
2021-02-27 13:13:22
阅读次数:
0
# # +SCRIPT BY Alexander Ezharjan+ # # +date : 2020/12/12 + # # +contact : ezhar.cnblogs.com + # # import sys import os import time print( """ XX MMMM ...
分类:
编程语言 时间:
2021-02-27 13:11:28
阅读次数:
0
同一个nginx配置文件,请求不同的域名可以指定对应的目录 nginx配置 cat long.conf server { listen 80; server_name a.com b.com c.com; location / { root /home/long/$host/; index inde ...
分类:
其他好文 时间:
2021-02-27 13:10:39
阅读次数:
0
from sklearn.datasets import load_iris from sklearn.linear_model import LogisticRegression #X的shape是(150,4),y是个一维数组,长度为150,可能有3种标签 X, y = load_iris(re ...
分类:
其他好文 时间:
2021-02-27 13:09:33
阅读次数:
0
日志进程rsyslog httpd/nginx/mysql: 各类应用程序,可以以自己的方式记录日志 Rsyslog 是处理系统相关日志的进程 处理日志的进程 rsyslog rsyslog可以处理绝大部分日志记录,比如系统操作有关信息,如登录信息,程序的启动关闭信息 [root@CatdeXin- ...
分类:
其他好文 时间:
2021-02-27 13:03:19
阅读次数:
0