摘要: 几个实用的库 open(name,mode)可直接处理文本文档; xlrd读取excel; xlwt写入excel; openpyxl处理excel表格; 参考:https://blog.csdn.net/weixin_41546513/article/details/109555832 CSV对C 阅读全文
posted @ 2022-07-18 21:31 黑蛋的博客 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1.创建项目 npx create-react-app react-travel --template typescript 安装插件: --save-dev表示插件不参与最终的产品发布 npm install typescript-plugin-css-modules --sava-dev 2.统 阅读全文
posted @ 2022-06-24 09:41 黑蛋的博客 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1.Windows 用户无法直接创建名为 .condarc 的文件,可先执行 conda config --set show_channel_urls yes 生成该文件。 2.查看目前的镜像源 conda config --show-sources 此时会显示出配置文件.condarc的位置,可以 阅读全文
posted @ 2022-06-15 22:25 黑蛋的博客 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1.安装我一直参考的这个博客:https://blog.csdn.net/sinat_35855737/article/details/105637942?utm_source=app&app_version=5.3.1&code=app_1562916241&uLinkId=usr1mkqgl91 阅读全文
posted @ 2022-06-14 16:52 黑蛋的博客 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 在axios文件中导入router,console输出为undefined (js/ts中无法使用vue声明的文件/不能使用useRouter ,useRoute,他们需要在setup中调用执行后才能用) 解决方法(推荐) 导入项目中已配置好的router import router from '@ 阅读全文
posted @ 2022-05-25 12:11 黑蛋的博客 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: vuex官方文档 1.安装 参考官网 2.store 初始化store import { createStore } from 'vuex' const store = createStore({}) export default store main.ts引入store import store 阅读全文
posted @ 2022-05-25 11:12 黑蛋的博客 阅读(1709) 评论(0) 推荐(0) 编辑
摘要: 封装button <template> <button :class="'button button-'+type" @click="handleClick"><slot></slot></button> </template> <script lang="ts"> import { defineC 阅读全文
posted @ 2022-05-18 17:23 黑蛋的博客 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 参考: https://developer.mozilla.org/zh-CN/docs/Web/API/Fetch_API/Using_Fetch 应用示例: fetch('/api/create', { method: 'POST', body: JSON.stringify({ content 阅读全文
posted @ 2022-05-17 15:16 黑蛋的博客 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 1.查找图片的方式 2.wps点击文件直接另存为网页文件(.html,.thm) 3.另存后的文件夹里是文档中所有的图片 阅读全文
posted @ 2022-05-14 11:01 黑蛋的博客 阅读(448) 评论(0) 推荐(0) 编辑
摘要: https://www.2cto.com/kf/201905/806709.html css预处理 阅读全文
posted @ 2022-05-07 14:36 黑蛋的博客 阅读(9) 评论(0) 推荐(0) 编辑