随笔分类 -  Python

摘要:Python开发环境准备 先安装python和miniconda conda create -n ocr-test python=3.12.8 conda env list conda activate ocr-test pip install paddlepaddle==3.1.0 pip ins 阅读全文
posted @ 2025-08-23 10:45 0611163 阅读(163) 评论(0) 推荐(0)
摘要:Python3写法 代码 # -*- coding: utf-8 -*- # 需求:年龄倒序,姓名正序 from itertools import chain from pypinyin import pinyin, Style class Student: def __init__(self, n 阅读全文
posted @ 2022-10-24 18:12 0611163 阅读(889) 评论(0) 推荐(0)
摘要:使用的是 Python 3 代码: #!/usr/bin/python # -*- coding: gbk -*- # JSON数据导出到csv文件 import json import pandas file = open("data//001.txt", "r", encoding="utf-8 阅读全文
posted @ 2021-03-24 17:01 0611163 阅读(663) 评论(0) 推荐(0)
摘要:代码: # coding=gbk # 从HostWrites.csv读取数据并分组统计 import pandas import datetime print "\r\n从 HostWrites.csv 读取数据并分组统计\r\n" excel = pandas.read_csv("D:\Progr 阅读全文
posted @ 2021-03-04 16:10 0611163 阅读(902) 评论(0) 推荐(0)