12 2020 档案
摘要:#等待返回,设置callback为Trueimport subprocess def executeshell_by_call(command, callback=False): """ 执行shell命令 必须加上close_fds=True,否则子进程会一直存在 """ if callback:
阅读全文
摘要:列出所有标签 git tag 通配符过滤标签 git tag -l "v1.0.0-RC5*" 新建tag git tag tagName 创建带备注得tag git tag -a v1.0.1 -m "my tag" 推送tag到远程 git push origin v1.0 删除tag 本地删除
阅读全文
摘要:import requests from lxml import html etree = html.etree from bs4 import BeautifulSoup url = "https://mp.weixin.qq.com/s/drle9K4jgVWxm4v14ETbpQ" respo
阅读全文
摘要:url_str = 'https://www.tenable.com/plugins/feeds?sort=updated' respose_str = requests.get(url_str) print(respose_str.text) soup = BeautifulSoup(respos
阅读全文
摘要:from bs4 import BeautifulSoup import requests import random def get_ip_list(url, headers): web_data = requests.get(url, headers=headers) print(web_dat
阅读全文