# -*- coding: utf-8 -*- #-*- encoding: gbk -*- import csv import time import re from collections import defaultdict import pandas as pd rf=open("E://**//**.csv", 'r') april = csv.reader(rf) count = 0 for i in range(1,32): for date in april: if str(date[8]) == str(i): count = count + 1 print(i, count)
结果如图,全部31天频数一样,肯定代码写错了
慕瓜9220888
Nelson_Zhao
相关分类