pu369com

11 2023 档案

python批量修改文件名(对各单位上报文件名加上序号并统计未上报的单位)
摘要:需求:有几十个文件(不超过100个),要根据文件名加序号 思路:用字典将关键字对应序号,再批量改文件名,代码比较简单: import os,copy path = input("请输入包含各单位上报资料的文件夹全路径: ") units = {"总裁办":"01","办公室":"01","生产处": 阅读全文

posted @ 2023-11-23 17:21 pu369com 阅读(33) 评论(0) 推荐(0) 编辑

使用python库uvicorn替代Nginx发布Vue3项目
摘要:一、Vue3项目打包 (博主vue版本:4.3.1) 由于是要放在FastAPI中,接口服务和Web服务用的是同一个端口,所以我们给前端一个统一的URL前缀来区分前端页面和后端接口。比如:/admin;配置方式如下:在src/router文件夹下找到路由文件,注意要用history模式,不要用哈希。 阅读全文

posted @ 2023-11-23 09:16 pu369com 阅读(588) 评论(0) 推荐(0) 编辑

关于FastAPI与Vue3的通信
摘要:学习一下前后端分离技术,前端采用三大框架之一的Vue.js,后端则采用Python的FastAPI框架。 一、前端设计 1.建目录 mydemo 2.在mydemo目录下打开命令行,运行:npm init vue@latest (这里如果cmd卡死了,就ctrl + C 结束,再次运行npm ini 阅读全文

posted @ 2023-11-22 22:29 pu369com 阅读(896) 评论(0) 推荐(0) 编辑

python tkinter treeview 操作示例
摘要:1.建立Treeview from tkinter import * from tkinter.ttk import * root = Tk() # 建立Treeview columns = ( ('ID', 50), ('S_ID', 50), ('S_NAME', 120), ('B_NAME' 阅读全文

posted @ 2023-11-22 17:45 pu369com 阅读(693) 评论(0) 推荐(0) 编辑

python tkinter treeview 仿 excel表格
摘要:代码: from tkinter import ttk from tkinter import * root = Tk() # 初始框的声明 columns = ("姓名", "IP地址") treeview = ttk.Treeview(root, height=18, show="heading 阅读全文

posted @ 2023-11-15 17:39 pu369com 阅读(213) 评论(0) 推荐(0) 编辑

用vite创建vue3项目
摘要:打算用vite创建vue3项目 1.安装 npm init vite-app <项目名称> cd <项目名称> npm install npm run dev ## 执行完以上命令,就意味着你的vue3.0项目已经用上了vite了 提示 deprecated 改为: npm init @vitejs 阅读全文

posted @ 2023-11-03 17:16 pu369com 阅读(77) 评论(0) 推荐(0) 编辑

Nodejs安装教程
摘要:1.下载 在https://nodejs.cn/download/current/ 下载安装包,我下载的是 node-v18.18.0-x64.msi 2. 双击安装包,一路点击下一步,我选择安装到 D:\nodejs\ 目录 3.验证安装 在cmd命令行窗口中,运行 node -v 及 npm - 阅读全文

posted @ 2023-11-01 17:04 pu369com 阅读(254) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

导航

统计

点击右上角即可分享
微信分享提示