01 2023 档案
Blob文件下载type类型
摘要:let url = window.URL.createObjectURL(new Blob([文件流(一般为res.data)], {type: "Blob类型"}) let link = document.createElement('a') link.style.dispaly = 'none' 阅读全文
posted @ 2023-01-23 20:36 转眼春夏秋冬如烟 阅读(361) 评论(0) 推荐(0)
编写简单的button配合input实现上传文件操作
摘要:<template> <button> 导入文件 <input type="file" @change="fileChange" accept=".*" :disable="disable"/> </button> </template> <script> data(){ return{ disab 阅读全文
posted @ 2023-01-23 20:26 转眼春夏秋冬如烟 阅读(413) 评论(0) 推荐(0)
去除python中数据的0值
摘要:import numpy as np a = [0, 1, 2] a = np.array(a) a = a[a != 0].tolist() print(a) //a = [1, 2] 阅读全文
posted @ 2023-01-23 20:08 转眼春夏秋冬如烟 阅读(480) 评论(0) 推荐(0)
两个数的置换
摘要:var a = 1 var b = 2 // 1 a = a + b b = a - b a = a - b // 2 c = a a = b b = c // 3 a = [a, b] b = a[0] a = a[1] // 4 a = a ^ b b = a ^ b a = a ^ b // 阅读全文
posted @ 2023-01-23 20:04 转眼春夏秋冬如烟 阅读(30) 评论(0) 推荐(0)