12 2021 档案

摘要:python写.csv文件需要导入csv库;python读excel依赖xlrd模块,写excel依赖xlwt模块,话不多说,直接上代码。 import csv import xlrd import xlwt def csv_write_func(): """数据写入csv文件""" # 打开文件 阅读全文
posted @ 2021-12-27 18:21 我要学算法 阅读(823) 评论(0) 推荐(0)
摘要:1、requests.get requests.get一般用于发送GET请求,举例: url = 'https://www.baidu.com/' response = requests.get(url=url) response.encoding = 'utf-8' page_text = res 阅读全文
posted @ 2021-12-10 11:36 我要学算法 阅读(778) 评论(0) 推荐(0)