菜鸟学python可视化--001

xiaoxiao2025-08-22  88

# -*- coding: utf-8 -*- #Author Mr.xu from random import choice import matplotlib.pyplot as plt import requests import csv import numpy as np def read_csv(): x = [] y = [] with open('F:\\Oracle资料\\python\\1540454074260.csv') as f: content = csv.reader(f) for row in content: x.append(','.join(row[10:11])) y.append(','.join(row[11:12])) x = x[1:] y = y[1:] plt.plot(x) plt.xlabel('x') plt.ylabel('y') plt.show() print(x) print(y) plt.savefig('lfn.png') if __name__ == '__main__': read_csv()

转载请注明原文地址: https://www.6miu.com/read-5035140.html

最新回复(0)