2020年8月21日

python 实现tar文件压缩解压

摘要: 压缩文件 import tarfile import os def tar(fname): t = tarfile.open(fname + ".tar.gz", "w:gz") for root, dir, files in os.walk(fname): print root, dir, fil 阅读全文

posted @ 2020-08-21 15:14 闹不机米 阅读(3065) 评论(0) 推荐(0) 编辑

python basemap画图去除图片的边边,把图片改为透明色

摘要: # 去除图片的边边ax = fig.add_axes([0.1, 0.1, 0.7, 0.7]) ax.axis('off') plt.gca().xaxis.set_major_locator(plt.NullLocator()) plt.gca().yaxis.set_major_locator 阅读全文

posted @ 2020-08-21 15:10 闹不机米 阅读(856) 评论(0) 推荐(0) 编辑

导航