摘要: startswith 检查字符串是否以指定字符串开头 str = "this is string example....wow!!!" print (str.startswith( 'this' )) # 字符串是否以 this 开头 print (str.startswith( 'string', 阅读全文
posted @ 2020-02-18 17:27 送你一朵小红花 阅读(930) 评论(0) 推荐(0)
摘要: 0x01:简单介绍 requstst主要用途是发送网络请求。可以使用get、post、put、delete等方式请求。并且可以对请求头进行伪装,使用代理等。 0x02:基本用法 导入模块 pip install requests 获取网页 import requests #使用get方式获取网页源码 阅读全文
posted @ 2020-01-18 21:23 送你一朵小红花 阅读(336) 评论(2) 推荐(0)