# -*- 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()
菜鸟学python可视化--001
猜你喜欢
转载自blog.csdn.net/lv941002/article/details/83382429
今日推荐
周排行