![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python3
文章平均质量分 56
小博士不知
这个作者很懒,什么都没留下…
展开
-
deepin 定时任务(crontab)
说明Crontab 是 deepin 中周期性的执行任务的一个守护进程。常用命令sudo systemctl status cron # 查看 crontab 服务状态sudo systemctl start cron # 启动sudo systemctl stop cron # 关闭sudo systemctl restart cron # 重启cron.service 服务配置$ cat /lib/systemd/system/cron.service[Unit]原创 2022-02-20 00:36:54 · 1884 阅读 · 0 评论 -
python3 selenium chrome 实例
import re,timefrom selenium import webdriverfrom selenium.webdriver.common.by import Byoptions = webdriver.ChromeOptions()# 设置默认编码options.add_argument('lang=zh_CN.UTF-8')# Firefox options.add_argument('user-agent="Mozilla/5.0 (Windows NT 6.1; WOW64原创 2022-01-23 19:31:54 · 669 阅读 · 0 评论 -
Selenium ChromeDriver的说明
示例 from selenium import webdriver options = webdriver.ChromeOptions() # 设置默认编码 options.add_argument('lang=zh_CN.UTF-8') # 设置 user-agent,模拟移动设备 options.add_argument('user-agent="Opera/9.80 (Android 2.3.4; Linux; Opera Mobi/build-1107180945; U;原创 2022-01-23 17:32:19 · 864 阅读 · 0 评论 -
Deepin Python3 Selenium ChromeDriver的安装
Deepin Selenium ChromeDriverselenium官方 | selenium文档 | ChromeDriver下载地址概述Selenium(自动化测试工具)可以驱动浏览器执行特定的动作,如点击、下拉等操作。Selenium WebDriver 接口webdriver.Firefoxwebdriver.FirefoxProfilewebdriver.Chromewebdriver.ChromeOptionswebdriver.Iewebdriver.Operawe原创 2022-01-23 17:12:42 · 1213 阅读 · 0 评论 -
Visual Studio Code 中 Python3 的配置
安装扩展(Extensions, Ctrl+Shift+X)python 扩展chinese(简体中文)设置默认解释器位置(文件 > 首选项 > 设置)查询(python.pythonPath)设置默认解释器的路径/usr/local/bin/python3.10创建 hello.py 文件print("Hello World!")运行Run Current File in Interactive Windows.Run Python Fil..原创 2022-01-21 23:02:27 · 553 阅读 · 0 评论 -
deepin 编译安装 python3.10
deepin 编译安装 python3.10官网 | 下载地址下载与安装下载wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xzxz -d Python-3.10.0.tar.xztar -xf Python-3.10.0.tarcd Python-3.10.0.tar安装./configure --prefix=$BI_PATH/python/3.10.0 --enable-optimizationsm原创 2022-01-21 22:56:47 · 1284 阅读 · 0 评论