摘要: pip install xlsxwriter xlsxwriter 生成的文件后缀名为.xlsx,最大能够支持 1048576 行数据,16384 列数据 import os import xlsxwriter import datetime if os.path.exists('./gen-fil 阅读全文
posted @ 2022-12-02 16:06 carol2014 阅读(410) 评论(0) 推荐(0) 编辑
摘要: pip install openpyxl openpyxl 读写 xlsx 文件,不处理 xls 文件 读文件 import openpyxl # 打开xlsx文件 excel = openpyxl.load_workbook('./source-files/info.xlsx') for shee 阅读全文
posted @ 2022-12-02 16:03 carol2014 阅读(978) 评论(0) 推荐(0) 编辑
摘要: 最新要处理excel文件,于是整理了下python3中常用操作excel的包的用法 pip 用法 # 查看已安装 pip list # 安装包 pip install xlrd # 安装指定版本 pip install xlrd==1.2.0 # 卸载 pip uninstall xlrd xlrd 阅读全文
posted @ 2022-12-02 15:59 carol2014 阅读(348) 评论(0) 推荐(0) 编辑
摘要: 最近要写读取FTP服务器上的csv档,记录下: 第一种方法: 使用ftp系列函数将FTP服务器的文件下载到本地,再打开读取内容 $ftp_server = "192.168.1.14"; $ftp_user_name = "ftp_username"; $ftp_user_pass = "ftp_p 阅读全文
posted @ 2022-11-24 17:15 carol2014 阅读(171) 评论(0) 推荐(0) 编辑
摘要: 格式化后得到 阅读全文
posted @ 2022-11-24 10:52 carol2014 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 当前python版本3.10.8 django版本4.1.3 #开始步骤 pip install django django-admin startproject mysite #生成mysite目录 mysite/mysite目录 __init__.py asgi.py settings.py u 阅读全文
posted @ 2022-11-19 22:28 carol2014 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 本文出处 http://www.cnblogs.com/vamei 作者:Vamei 序列(sequence) 序列包含有定值表(tuple)和表(list)。字符串(string)是一种特殊的定值表 下面的内建函数(built-in function)可用于序列(表,定值表,字符串): len(s 阅读全文
posted @ 2022-11-19 14:58 carol2014 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Class 与 Style 绑定 在将 v-bind 用于 class 和 style 时,Vue.js 做了专门的增强。表达式结果的类型除了字符串之外,还可以是对象或数组。 绑定 HTML Class <!-- 对象语法 active 这个 class 存在与否将取决于 data property 阅读全文
posted @ 2022-11-19 11:16 carol2014 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 应用 & 组件实例 //应用实例 const app = Vue.createApp({ data() { return { count: 4 } } }) //组件实例 const vm = app.mount('#app') console.log(vm.count) // => 4 生命周期 阅读全文
posted @ 2022-11-19 11:15 carol2014 阅读(132) 评论(0) 推荐(0) 编辑
摘要: 突发奇想要将vue3作为js库嵌入到html中使用,顺便学习下vue3的基础知识 <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>ECharts</title> <!-- 方法有用 --> <!-- <script src= 阅读全文
posted @ 2022-11-19 11:13 carol2014 阅读(183) 评论(0) 推荐(0) 编辑