![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
aikongmeng
你对编程一无所知
展开
-
python demo 网页简单解析
pip install lxml pip install bs4 pip install requests Beautiful Soup 是一个比较实用的库,从来网页抓取数据,标准网页的解析器 简单例子: import requests from bs4 import BeautifulSoup link = "http://aikongmeng.blog.csdn.net/" r = requests.get(link) bf = BeautifulSoup(r.text, "lx.原创 2021-03-20 18:40:40 · 169 阅读 · 2 评论 -
Python DEMO 模拟浏览器提取网页元素
from selenium import webdriver import time url = "https://www.airbnb.cn/s/shenzhen--china/homes?items_offset=" # 设置无图像,禁用JS, 加快网页访问速度 fp = webdriver.FirefoxProfile() fp.set_preference("permissions.default.image", 2) fp.set_preference("javascript.enable",.原创 2021-03-15 11:25:57 · 201 阅读 · 0 评论 -
python 执行adb 安装Apk
#encoding:utf-8 import os,time,re a='adb devices' b=os.popen(a).readlines() print(b) l=[] for sn in b: if 'device' in sn and 'List' not in sn: a=sn.split('\t')[0] l.append(a) print(l) for mob in l: path ='C:\\Users\\akm\\Desktop\.原创 2020-11-09 13:48:03 · 1159 阅读 · 0 评论 -
探索 Python 学习
Python 是一种敏捷的、动态类型化的、极富表现力的开源编程语言,可以被自由地安装到多种平台上(参阅 参考资料)。Python 代码是被解释的。如果您对编辑、构建和执行循环较为熟悉,则 Python 代码对您来说更简单。但是,请不要搞错:Python 器可以是简单的脚本,也可以是大型的复杂程序。事实上,Python 解释器的最大特点是鼓励探索和简化学习过程。如果您想证明这一点,请使用 Pyt转载 2014-04-12 17:24:51 · 952 阅读 · 0 评论