1 2 3 4 5 ··· 7 下一页
摘要: 1.vim /etc/ssl/openssl.cnf 2.将最后一行修改为CipherString = DEFAULT@SECLEVEL=1 3.pip3 install lz4 阅读全文
posted @ 2021-05-07 18:12 没有显示名称 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-05-07 18:07 没有显示名称 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 1.apt-get install python3.7 2.curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py 3.python3.7 get-pip.py 4.python3.7 -V 5.pip3.7 -V 阅读全文
posted @ 2021-05-07 17:36 没有显示名称 阅读(255) 评论(0) 推荐(0) 编辑
摘要: pip install DBUtils==1.3pip install mysqlclient==2.0.1 import time import threading import MySQLdb import queue from MySQLdb.cursors import DictCursor 阅读全文
posted @ 2020-12-04 09:29 没有显示名称 阅读(952) 评论(0) 推荐(0) 编辑
摘要: # 根据一年中的第几周来获取对应的时间import timea=time.strptime('2020-2-0', '%Y-%U-%w')print(a)# 给定一个时间获取该时间是一年中的第几周import datetimedownload_time="2020-01-06"a = time.st 阅读全文
posted @ 2020-11-19 09:13 没有显示名称 阅读(1614) 评论(0) 推荐(0) 编辑
摘要: from threading import Thread class MyThread(Thread): def __init__(self, func, args): super(MyThread, self).__init__() self.func = func self.args = arg 阅读全文
posted @ 2020-11-17 14:26 没有显示名称 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 根据提示在对应/va/run目录下创建对应的nginx.pid文件即可 内容直接写1就OK 阅读全文
posted @ 2020-04-02 10:21 没有显示名称 阅读(340) 评论(0) 推荐(0) 编辑
摘要: 方法1: 1. 修改rsyslog文件,将/etc/rsyslog.d/50-default.conf 文件中的#cron.*前的#删掉; 2. 重启rsyslog服务service rsyslog restart 3. 重启cron服务service cron restart 方法2: 1. 编辑 阅读全文
posted @ 2019-11-12 15:20 没有显示名称 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd temp = pd.Series([1,2,3,4,5]) loc用法: temp.loc[0:3] 0 1 1 2 2 3 3 4 # 输出索引为0-3的值(基于索引) temp.loc[-1] 报错 iloc用法: temp.iloc[0:3] 0 1 1 阅读全文
posted @ 2019-11-07 10:30 没有显示名称 阅读(710) 评论(0) 推荐(0) 编辑
摘要: 例1 判断目录是否存在 例2 安装软件 文件测试(操作符 文件或目录) 用户输入输出判断 阅读全文
posted @ 2019-09-17 20:01 没有显示名称 阅读(139) 评论(0) 推荐(0) 编辑
1 2 3 4 5 ··· 7 下一页