原创 Python re模塊的簡單實用

""" '.' 匹配所有字符串,除\n以外 '-' 表示範圍[0-9] '*' 匹配前面的子表達式零次或多次。要匹配 * 字符,請使用 \*。 '+' 匹配前面的子表達式一次或多次。要匹配 + 字符

原创 Linux下anaconda3的安裝和環境變量的配置

安裝 下載 wget https://repo.anaconda.com/archive/Anaconda3-2018.12-Linux-x86_64.sh # https://repo.anaconda.com/archive

原创 Python生成requestment.txt文件

python中通過requirements.txt來記錄項目所有的依賴包及其版本號,以便在其他的環境中部署 pip freeze > requirements.txt python中通過requirements.txt來記錄項目所

原创 requests模塊InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificat....

原來代碼 import requests # requests.packages.urllib3.disable_warnings() session = requests.session() header = { 'Us

原创 python requests 禁止重定向

python requests 禁止重定向 allow_redirects=False import requests session = requests.session() response1 = session.post(

原创 Python報Error([('SSL routines', 'tls_process_server_certificate', 'certificate verify failed')])

import requests session = requests.session() header = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) App

原创 常用autojs命令

尋找元素按座標點擊 評論 = id("iv_comment").findOne(); log(評論.bounds()) var 評論座標 = 評論.bounds()