摘要: #1 简单介绍 os.path模块提供了一系列函数,以便我们处理目录路径和文件 os.path常和os中其它函数一起配合使用,如 ## os.getcwd() 获取当前所在的目录 ![image](https://img2023.cnblogs.com/blog/3187256/202307/318 阅读全文
posted @ 2023-05-18 22:37 工作手记 阅读(305) 评论(0) 推荐(0)
摘要: 解析某网站的内容,用requests库获得html内容后,用BeautifulSoup来解析内容 其中有个标签大概这样, 代码流程大概这样 cookie = 'xxxxx' r = requests.get(url, cookies = cookies) page = BeautifulSoup(r 阅读全文
posted @ 2023-05-18 22:24 工作手记 阅读(29) 评论(0) 推荐(0)