正在加载

linux系统定时任务

linux 系统定时任务: 一、用户级的定时任务(永久) 保证 crond 这个服务是开启的(默认情况下是开的) [root@trade ~]# service crond status crond (pid 21661) is running... -u 指定用户,-e 编辑 回车会就可以直接编辑了 [...

阅读更多

在 Python 中运行另一个脚本

在 python 中运行另一个 python 脚本: 1、首先用到 subprocess 这个库 下载: pip install subprocess 2、使用 subprocess.Popen([sys.executable, 'openAI.py'...

L

Linux系统上卸载python

1、查看所有 python 路劲 whereis python 2、运行以下命令删除 python3.10 相关文件 # rm -rf /usr/bin/python3.10m # rm -rf /usr/bin/python3.10 # rm -rf /...

P

Python替换行符导致文字丢失

Python 替换行符导致文字丢失: 从网页爬取一段文字: Consider the half-eigenvalue problem [公式] a.e. [公式], where [公式], [公式], [公式] for [公式], and [公式] and ...

L

Linux系统上安装python详细步骤

1、默认情况下,Linux 会自带安装 Python,可以运行 python –version 命令查看 2、查看 Linux 默认安装的 Python 位置 [root@VM-6-7-centos ~]# whereis python python: /us...