摘要: def split_list(data_list, length=500): for i in range(0, len(data_list), length): yield data_list[i: i + length] def main(): _list = [1, 2, "htr", 4, 阅读全文
posted @ 2024-09-02 16:40 二月雪 阅读(2) 评论(0) 推荐(0) 编辑
摘要: import pandas as pd data = pd.read_excel(excel_path, sheet_name='Sheet1', engine="openpyxl") # engin 引擎参数:openpyxl, xlrd for index, row in data.iterro 阅读全文
posted @ 2024-09-02 16:09 二月雪 阅读(1) 评论(0) 推荐(0) 编辑
摘要: bytes_str = b'\xe9\x98\xbf\xe6\x89\x81\xe6\x8e\xa8\xe7\xbf\xbb' # b的表示bytes类型, u表示为unicode编码 test_str = str(bytes_str, encoding='utf-8') 阅读全文
posted @ 2024-09-02 15:25 二月雪 阅读(18) 评论(0) 推荐(0) 编辑