python计算数组中出现的所有元素并统计出现次数 1 #从文本中获取,并且统计 2 import matplotlib.pyplot as plt 3 import numpy as np 4 5 6 f = open('TXT/123.txt') 7 lines = f.readlines() 8 data = [] 9 10 for line in lines:11 data... python 2023-05-30 55 点赞 0 评论 83 浏览