2020年8月12日
摘要: 1.调用API import requests import time #执行API url="https://api.github.com/search/repositories?q=language:python&sort=stars" r=requests.get(url) print("St 阅读全文
posted @ 2020-08-12 08:00 苏小沫 阅读(96) 评论(0) 推荐(0) 编辑
摘要: 1.打印第一列的值并且追到到列表中 filename='D:\\weather.csv' with open(filename) as f: reader=csv.reader(f) header_row=next(reader) highs=[] for row in reader: high=i 阅读全文
posted @ 2020-08-12 07:36 苏小沫 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 恢复内容开始 1.绘制简单的折线图,效果图如下 import matplotlib.pyplot as plt #使用平方数据来绘制表格 input_values=[1,2,3,4,5] squars=[1,4,9,6,25] #修改标签和文字线条粗细,linewidth 表示粗细 plt.plot 阅读全文
posted @ 2020-08-12 06:59 苏小沫 阅读(134) 评论(0) 推荐(0) 编辑